コード例 #1
0
        private static void InsertRandomPallet()
        {
            Pallet pallet = GeneratorAS.CreatePallet();

            Console.WriteLine($"Pallet | Count:{pallet.count} | Good name: {pallet.good.name} | Good manufacturer: {pallet.good.manufacturer} |");
            client.insertPallet(pallet);
        }
コード例 #2
0
        private static void CreateTruck()
        {
            List <Good> goods = GeneratorAS.GenerateRandomNumberOfGoods();

            foreach (Good g in goods)
            {
                Pallet pallet = new Pallet()
                {
                    count = rnd.Next(10, 200),
                    good  = g,
                };
                Console.WriteLine($"Pallet | Count:{pallet.count} | Good name: {pallet.good.name} | Good manufacturer: {pallet.good.manufacturer} |");
                client.insertPallet(pallet);
                Thread.Sleep(rnd.Next(3000, 5000));
            }
        }