public void Should_return_an_error_notification_if_the_Statement_has_only_inactive_accounts()
                {
                    var accounts = new List <Account>
                    {
                        new Account
                        {
                            Inactive = true
                        }
                    };
                    var statement = new Statement
                    {
                        Accounts = accounts
                    };
                    var executionArguments = new ExecutionArguments
                    {
                        Statement = new Notification <Statement>
                        {
                            Item = 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();
                }