Ejemplo n.º 1
0
 internal void InitializeStock()
 {
     foreach (ProductInformation info in commercial.Brochure)
     {
         stock.AddToStock(commercial.OrderedProduct(info._productName, 50));
     }
 }
Ejemplo n.º 2
0
        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"));
        }