Пример #1
0
 public override ValidationResult UpdateAge(UserUpdateAgeCommand command)
 {
     Age = command.Age;
     return(ValidationResult.OkResult(new List <DomainEventBase> {
         new UserUpdateAgeEvent(Age, Id)
     }));
 }
Пример #2
0
 public override ValidationResult UpdateAge(UserUpdateAgeCommand command)
 {
     // TODO: Implement this method;
     return(ValidationResult.ErrorResult(new List <string> {
         "The Method \"UpdateAge\" in Class \"User\" that is not implemented was called, aborting..."
     }));
 }
Пример #3
0
 public abstract ValidationResult UpdateAge(UserUpdateAgeCommand command);