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); }
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)); } }