public Task <ValidationResult> Validate() { var validator = new SendEmailCommandValidator(); return(validator.ValidateAsync(this)); }
public void Setup() { _validator = new SendEmailCommandValidator(); }
private static ValidationResult ValidateCommand(SendEmailCommand cmd) { var validator = new SendEmailCommandValidator(); return(validator.Validate(cmd)); }