public void Should_return_an_error_notification_if_the_Statement_has_no_accounts()
 {
     var executionArguments = new ExecutionArguments
         {
             Statement = new Notification<Statement>
                 {
                     Item = new Statement()
                 }
         };
     var result = new RequireActiveAccountsExist().Check(executionArguments);
     result.HasErrors.ShouldBeTrue();
     Regex.IsMatch(result.Errors, RequireActiveAccountsExist.NoActiveAccountsMessageText.MessageTextToRegex()).ShouldBeTrue();
 }
 public void Should_return_a_success_notification_if_the_Statement_has_at_least_one_active_account()
 {
     var accounts = new List<Account>
         {
             new Account
                 {
                     Inactive = false
                 }
         };
     var statement = new Statement
         {
             Accounts = accounts
         };
     var executionArguments = new ExecutionArguments
         {
             Statement = Notification.Empty.ToNotification(statement)
         };
     var result = new RequireActiveAccountsExist().Check(executionArguments);
     result.IsValid.ShouldBeTrue();
 }