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; }
public static void UpdateStorage(Batch batch) { Storage storage = new Storage(); storage.AmmountInKg = batch.SellAbleAmount; storage.Fruit = batch.Field.Fruit; }