コード例 #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);