public Instrument GetById(int id) { var i = Instruments.GetById(id); if (i == null) { i = new Instrument(id, InstrumentType.Synthetic, Guid.NewGuid().ToString(), "", CurrencyId.USD); Instruments.Add(i); } return i; }