public void AddStock(StockInputModel model) { var stock = model.AsStock(); _fund.Add(stock); UpdateStocks(); }
public void AsStockReturnsNewBondForBondType() { var sut = new StockInputModel("10,0", "10", "Bond"); Assert.IsInstanceOf(typeof(Bond), sut.AsStock()); }
public void AsStockReturnsNewBondForEquityType() { var sut = new StockInputModel("10,0", "10", "Equity"); Assert.IsInstanceOf(typeof(Equity), sut.AsStock()); }