示例#1
0
        private void RequestRandomGood()
        {
            Good good  = GeneratorPS.GenerateGood();
            int  count = rnd.Next(20, 200);

            Console.WriteLine($"Requested good | Count:{count} | Good name: {good.name} | Good manufacturer: {good.manufacturer} |");
            Pallet[] pallets = client.retrievePallets(good, count, pickUpStationID);
            FinishRequest(pallets, count);
        }
示例#2
0
        private void CreateOrder()
        {
            List <Good> goods = GeneratorPS.GenerateRandomNumberOfGoods();

            foreach (Good g in goods)
            {
                int count = rnd.Next(20, 200);
                Console.WriteLine($"Requested good | Count:{count} | Good name: {g.name} | Good manufacturer: {g.manufacturer} |");
                Pallet[] p = client.retrievePallets(g, count, pickUpStationID);
                FinishRequest(p, count);
            }
        }