internal void InitializeStock() { foreach (ProductInformation info in commercial.Brochure) { stock.AddToStock(commercial.OrderedProduct(info._productName, 50)); } }
public void OrderingIntoStockTest() { IStockBehaviour stock = office.Stock; Commercial commercial = office._commercial; stock.AddToStock(commercial.OrderedProduct("chips", 5)); IStockData stockData = (IStockData)stock; Assert.Equal(55, stockData.GetProductQuantity("chips")); }