Beispiel #1
0
 public Product(int id, string description, int timeToFinish, KitchenArea kitchenArea)
 {
     Id           = id;
     Description  = ValidationService.SetDescription(description, FieldResource.Description, 1, 300);
     TimeToFinish = ValidationService.SetValue(timeToFinish, FieldResource.TimeToFinish, 1, 60);
     SetKitchenArea(kitchenArea);
 }
Beispiel #2
0
        public void SetKitchenArea(KitchenArea kitchenArea)
        {
            if (kitchenArea == null)
            {
                ValidationService.ValidateExistRequest(kitchenArea, FieldResource.KitchenArea);
            }

            KitchenArea = kitchenArea;
        }