public void Should_return_an_error_notification_if_the_Statement_has_no_tax_reporting_categories()
 {
     var executionArguments = new ExecutionArguments
         {
             Statement = new Notification<Statement>
                 {
                     Item = new Statement()
                 }
         };
     var result = new RequireTaxReportingCategoriesExist().Check(executionArguments);
     result.HasErrors.ShouldBeTrue();
     Regex.IsMatch(result.Errors, RequireTaxReportingCategoriesExist.NoTaxReportingCategoriesMessageText.MessageTextToRegex()).ShouldBeTrue();
 }
 public void Should_return_a_success_notification_if_the_Statement_has_at_least_one_tax_reporting_category()
 {
     var taxReportingCategories = new List<TaxReportingCategory>
         {
             new TaxReportingCategory()
         };
     var statement = new Statement
         {
             TaxReportingCategories = taxReportingCategories
         };
     var executionArguments = new ExecutionArguments
         {
             Statement = Notification.Empty.ToNotification(statement)
         };
     var result = new RequireTaxReportingCategoriesExist().Check(executionArguments);
     result.IsValid.ShouldBeTrue();
 }