Пример #1
0
 public static Batch CreateBatch(int id, int amountOfFruit, Field field, int sellAbleAmount)
 {
     Batch batch = new Batch();
     batch.Id = id;
     batch.AmountOfFruit = amountOfFruit;
     batch.Field = field;
     batch.SellAbleAmount = sellAbleAmount;
     
     return batch;
 }
Пример #2
0
 public static void UpdateStorage(Batch batch)
 {
     Storage storage = new Storage();
     storage.AmmountInKg = batch.SellAbleAmount;
     storage.Fruit = batch.Field.Fruit;
 }