示例#1
0
        public void DeleteEquityTest()
        {
            var service = new StocksService();
            var stock   = new Equity()
            {
                Price    = 50000,
                Quantity = 3
            };
            var newStockId = service.AddStock(stock);
            var newStock   = service.GetStock(newStockId);

            Assert.IsNotNull(newStock);
            service.DeleteStock(newStock.Id);
            newStock = service.GetStock(newStockId);
            Assert.IsNull(newStock);
        }