public void Should_return_a_success_notification_if_the_Statement_result_does_not_have_errors() { var executionArguments = new ExecutionArguments { ApplicationSettings = Notification.Empty.ToNotification<ApplicationSettings>() }; var result = new RequireApplicationSettings().Check(executionArguments); result.IsValid.ShouldBeTrue(); }
public void Should_return_an_error_notification_if_the_Statement_result_has_errors() { var executionArguments = new ExecutionArguments { ApplicationSettings = Notification.ErrorFor("pretend").ToNotification<ApplicationSettings>() }; var result = new RequireApplicationSettings().Check(executionArguments); result.IsValid.ShouldBeFalse(); }