예제 #1
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccountType("Bob", "xxx")
     .VerifyStandardErrorMatches(IsATaxabilityTypeKey.InvalidTaxabilityType);
 }
예제 #2
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountName("Alpha", "Beta", "ok")
     .VerifyStandardErrorMatches(ChangeAccountName.IncorrectParametersMessageText);
 }
예제 #3
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ListAccounts()
     .VerifyStandardErrorMatches(RequireActiveAccountsExist.NoActiveAccountsMessageText);
 }
예제 #4
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccountType("Bob", TaxabilityType.Taxable.Key, "a")
     .VerifyStandardErrorMatches(AddAccountType.IncorrectParametersMessageText);
 }
예제 #5
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ListAccountTypes("a")
     .VerifyStandardErrorMatches(RequireExactlyNArgs.WrongNumberOfArgumentsMessageText);
 }
예제 #6
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountTypeName("Bob", "Foo")
     .VerifyStandardErrorMatches(IsTheNameOfAnExistingAccountType.NameDoesNotExistMessageText);
 }
예제 #7
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ShowAccountType(Init.GetDefaultAccountTypes().First().Name, "Checking")
     .VerifyStandardErrorMatches(ShowAccountType.IncorrectParametersMessageText);
 }
예제 #8
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ShowAccountType()
     .VerifyStandardErrorMatches(ShowAccountType.IncorrectParametersMessageText);
 }
예제 #9
0
 protected override void Before_first_test()
 {
     Subcutaneous.FromCommandline()
     .Init(@"x:\previous.statement")
     .ClearOutput()
     .Init(FilePath);
 }
예제 #10
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .DeleteAccount("Alpha")
     .VerifyStandardErrorMatches(IsTheNameOfAnExistingAccount.NameDoesNotExistMessageText);
 }
예제 #11
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeName("Foo")
     .VerifyStandardErrorMatches(RequireSelectedAccount.AccountNeedsToBeSelected);
 }
예제 #12
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountTypeTaxabilityType(Init.GetDefaultAccountTypes().First().Name, "z")
     .VerifyStandardErrorMatches(IsATaxabilityTypeKey.InvalidTaxabilityType);
 }
예제 #13
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .DeleteAccount("Alpha", "a")
     .VerifyStandardErrorMatches(DeleteAccount.IncorrectParametersMessageText);
 }
예제 #14
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .ChangeAccountTypeTaxabilityType("0", TaxabilityType.Taxable.Key)
     .VerifyStandardErrorMatches(IsTheIndexOfAnExistingAccountType.IndexDoesNotExistMessageText);
 }
예제 #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);
 }
예제 #17
0
 public void Should_return_the_correct_error_message()
 {
     Subcutaneous.FromCommandline()
     .Init("x:")
     .AddAccount("Alpha", Init.GetDefaultAccountTypes().First().Name)
     .ChangeAccountType("Alpha", "0")
     .VerifyStandardErrorMatches(IsTheIndexOfAnExistingAccountType.IndexDoesNotExistMessageText);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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());
 }
예제 #22
0
 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());
 }
예제 #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);
                }
예제 #25
0
                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");
                }
예제 #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);
                }
예제 #27
0
                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);
                }
예제 #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);
                }
예제 #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);
                }
예제 #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);
                }