Example #1
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccountType("Bob", "xxx")
     .VerifyStandardErrorMatches(IsATaxabilityTypeKey.InvalidTaxabilityType);
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountName("Alpha", "Beta", "ok")
     .VerifyStandardErrorMatches(ChangeAccountName.IncorrectParametersMessageText);
 }
Example #3
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ListAccounts()
     .VerifyStandardErrorMatches(RequireActiveAccountsExist.NoActiveAccountsMessageText);
 }
Example #4
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccountType("Bob", TaxabilityType.Taxable.Key, "a")
     .VerifyStandardErrorMatches(AddAccountType.IncorrectParametersMessageText);
 }
Example #5
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ListAccountTypes("a")
     .VerifyStandardErrorMatches(RequireExactlyNArgs.WrongNumberOfArgumentsMessageText);
 }
Example #6
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountTypeName("Bob", "Foo")
     .VerifyStandardErrorMatches(IsTheNameOfAnExistingAccountType.NameDoesNotExistMessageText);
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ShowAccountType(Init.GetDefaultAccountTypes().First().Name, "Checking")
     .VerifyStandardErrorMatches(ShowAccountType.IncorrectParametersMessageText);
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ShowAccountType()
     .VerifyStandardErrorMatches(ShowAccountType.IncorrectParametersMessageText);
 }
Example #9
0
 protected override void Before_first_test()
 {
     Subcutaneous.FromCommandline()
     .Init(@"x:\previous.statement")
     .ClearOutput()
     .Init(FilePath);
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .DeleteAccount("Alpha")
     .VerifyStandardErrorMatches(IsTheNameOfAnExistingAccount.NameDoesNotExistMessageText);
 }
Example #11
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeName("Foo")
     .VerifyStandardErrorMatches(RequireSelectedAccount.AccountNeedsToBeSelected);
 }
Example #12
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountTypeTaxabilityType(Init.GetDefaultAccountTypes().First().Name, "z")
     .VerifyStandardErrorMatches(IsATaxabilityTypeKey.InvalidTaxabilityType);
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .DeleteAccount("Alpha", "a")
     .VerifyStandardErrorMatches(DeleteAccount.IncorrectParametersMessageText);
 }
Example #14
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountTypeTaxabilityType("0", TaxabilityType.Taxable.Key)
     .VerifyStandardErrorMatches(IsTheIndexOfAnExistingAccountType.IndexDoesNotExistMessageText);
 }
Example #15
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountTypeTaxabilityType(Init.GetDefaultAccountTypes().First().Name, TaxabilityType.Taxable.Key, "a")
     .VerifyStandardErrorMatches(ChangeAccountTypeTaxabilityType.IncorrectParametersMessageText);
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddTaxReportingCategory()
     .VerifyStandardErrorMatches(AddTaxReportingCategory.IncorrectParametersMessageText);
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccount("Alpha", Init.GetDefaultAccountTypes().First().Name)
     .ChangeAccountType("Alpha", "0")
     .VerifyStandardErrorMatches(IsTheIndexOfAnExistingAccountType.IndexDoesNotExistMessageText);
 }
Example #18
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccount("Alhpa", Init.GetDefaultAccountTypes().First().Name)
     .DeleteAccount("Alhpa")
     .ListAccounts()
     .VerifyStandardErrorMatches(RequireActiveAccountsExist.NoActiveAccountsMessageText);
 }
Example #19
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccount("Alpha", Init.GetDefaultAccountTypes().First().Name)
     .SelectAccount("Alpha")
     .ChangeName()
     .VerifyStandardErrorMatches(ChangeName.IncorrectParametersMessageText);
 }
Example #20
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccountType("Bob", TaxabilityType.Taxable.Key)
     .AddAccountType("Bob", TaxabilityType.Taxfree.Key)
     .VerifyStandardErrorMatches(MatchesNoneOf.ErrorMessageText)
     .VerifyStandardErrorMatches(typeof(IsTheNameOfAnExistingAccountType).GetSingularUIDescription());
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddTaxReportingCategory("Bob")
     .AddTaxReportingCategory("Bob")
     .VerifyStandardErrorMatches(MatchesNoneOf.ErrorMessageText)
     .VerifyStandardErrorMatches(typeof(IsTheNameOfAnExistingTaxReportingCategory).GetSingularUIDescription());
 }
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccount("Alpha", Init.GetDefaultAccountTypes().First().Name)
     .AddAccount("Beta", Init.GetDefaultAccountTypes().First().Name)
     .ChangeAccountName("Alpha", "Beta")
     .VerifyStandardErrorMatches(MatchesNoneOf.ErrorMessageText)
     .VerifyStandardErrorMatches(typeof(IsTheNameOfAnExistingAccount).GetSingularUIDescription());
 }
Example #23
0
                public void Should_return_the_correct_error_message()
                {
                    var defaultAccountTypes = Init.GetDefaultAccountTypes().ToList();

                    Subcutaneous.FromCommandline()
                    .Init("x:")
                    .ChangeAccountTypeName(defaultAccountTypes.First().Name, defaultAccountTypes.Last().Name)
                    .VerifyStandardErrorMatches(MatchesNoneOf.ErrorMessageText)
                    .VerifyStandardErrorMatches(typeof(IsTheNameOfAnExistingAccountType).GetSingularUIDescription());
                }
                protected override void Before_first_test()
                {
                    var executionArguments = Subcutaneous.FromCommandline()
                                             .Init("x:")
                                             .ClearOutput()
                                             .CreateExecutionArguments();

                    var command = IoC.Get <ListTaxReportingCategories>();

                    _result = command.Execute(executionArguments);
                }
                protected override void Before_first_test()
                {
                    var accountType = Init.GetDefaultAccountTypes().First();

                    Subcutaneous.FromCommandline()
                    .Init("x:")
                    .AddAccount("Alpha", accountType.Name)
                    .AddAccount("Beta", accountType.Name)
                    .AddAccount("Gamma", accountType.Name)
                    .DeleteAccount("2");
                }
Example #26
0
                protected override void Before_first_test()
                {
                    _executionArguments = Subcutaneous.FromCommandline()
                                          .Init(@"x:\previous.statement")
                                          .ClearOutput()
                                          .CreateExecutionArguments(ExpectedAccountName, _expectedTaxabilityType.Key);

                    var command = IoC.Get <AddAccountType>();

                    _result = command.Execute(_executionArguments);
                }
                protected override void Before_first_test()
                {
                    var executionArguments = Subcutaneous.FromCommandline()
                                             .Init("x:")
                                             .ClearOutput()
                                             .CreateExecutionArguments(Init.GetDefaultAccountTypes().First().Name);

                    var command = IoC.Get <ShowAccountType>();

                    _result = command.Execute(executionArguments);
                }
Example #28
0
                public void Should_return_the_correct_error_message()
                {
                    var subcutaneous = Subcutaneous.FromCommandline()
                                       .Init("x:");
                    Statement statement = Statement;

                    statement.AccountTypes.Clear();
                    IoC.Get <IStorageService>().Save(statement);
                    subcutaneous.ListAccountTypes()
                    .VerifyStandardErrorMatches(RequireAccountTypesExist.NoAccountTypesMessageText);
                }
Example #29
0
                protected override void Before_first_test()
                {
                    var executionArguments = Subcutaneous.FromCommandline()
                                             .Init(@"x:\current.statement")
                                             .ClearOutput()
                                             .CreateExecutionArguments();

                    var command = IoC.Get <ShowSettings>();

                    _result = command.Execute(executionArguments);
                }
Example #30
0
                protected override void Before_first_test()
                {
                    var executionArguments = Subcutaneous.FromCommandline()
                                             .Init(@"x:\current.statement")
                                             .AddAccount(AccountName, Init.GetDefaultAccountTypes().First().Name)
                                             .ClearOutput()
                                             .CreateExecutionArguments();

                    var command = IoC.Get <ListAccounts>();

                    _result = command.Execute(executionArguments);
                }