public override ValidationResult UpdateName(UserUpdateNameCommand command) { // TODO: Implement this method; return(ValidationResult.ErrorResult(new List <string> { "The Method \"UpdateName\" in Class \"User\" that is not implemented was called, aborting..." })); }
public override ValidationResult UpdateName(UserUpdateNameCommand command) { var creationResult = Post.Create(new PostCreateCommand("luly")); if (command.Name.Length > 4) { MyPosts.Add(creationResult.CreatedEntity); return(ValidationResult.OkResult(new List <DomainEventBase> { new UserUpdateNameEvent(command.Name, Id) })); } return(ValidationResult.ErrorResult(new List <string> { "Name too short to update" })); }
public abstract ValidationResult UpdateName(UserUpdateNameCommand command);