Пример #1
0
        public void CheapestStore()
        {
            Product        pr1         = new Product("молоко", 2);
            Product        pr2         = new Product("вода", 3);
            List <Product> consignment = new List <Product>()
            {
                pr1, pr2
            };

            List <String> stores = _service.FindCheapestStores(consignment);

            Show(stores, "cheapest store for shipment (2 packets of milk + 3 bottles of water)");
        }
Пример #2
0
        public void cheapestStore()
        {
            Products        pr1      = new Products("молоко", 2);
            Products        pr2      = new Products("вода", 3);
            List <Products> shipment = new List <Products>()
            {
                pr1, pr2
            };

            List <string> shops = _service.FindCheapestStores(shipment);

            show(shops, "cheapest store for shipment (2 packets of milk + 3 bottles of water)");
        }