Beispiel #1
0
 public void Open(BottleDTO bottle)
 {
     ExecutionContext.Instance.Execute(new OpenBottle(bottle.To()));
 }
Beispiel #2
0
 public IEnumerable<ErrorMessage> Validate(BottleDTO bottle)
 {
     var entity = bottle.To();
     var validator = new ValidateBottle(entity.Wine.ToMaybe(), entity.Year, entity.Price);
     return validator.Errors;
 }
Beispiel #3
0
 public void Create(BottleDTO bottle)
 {
     var entity = bottle.To();
     ExecutionContext.Instance.Execute(new CreateBottle(entity));
 }