public void ThenSuceedsWithValidCommand() { var cmd = BuildValidCommand(); var result = _validator.Validate(cmd); Assert.That(result.IsValid, Is.True); Assert.That(result.Errors.Count, Is.EqualTo(0)); }
private static ValidationResult ValidateCommand(SendEmailCommand cmd) { var validator = new SendEmailCommandValidator(); return(validator.Validate(cmd)); }