Exemplo n.º 1
0
 protected void contains_an_account(AccountContext context)
 {
     context.AccountId = 1234;
     context.Account = new Account
     {
         Id = context.AccountId
     };
     context.Repository.Accounts.Add(context.AccountId, context.Account);
 }
Exemplo n.º 2
0
 protected void contains_an_account(AccountContext context)
 {
     context.AccountId = 1234;
     context.Account   = new Account
     {
         Id = context.AccountId
     };
     context.Repository.Accounts.Add(context.AccountId, context.Account);
 }
Exemplo n.º 3
0
 protected void the_account_should_have_an_activity_date_of_today(AccountContext context, Account account)
 {
     Assert.AreEqual(DateTime.Today, account.LastActivityDate);
 }
Exemplo n.º 4
0
 protected void the_account_should_have_a_zero_balance(AccountContext context, Account account)
 {
     Assert.AreEqual(0m, account.TotalBalance);
 }
Exemplo n.º 5
0
 protected void the_account_status_should_be_frozen(AccountContext context, Account account)
 {
     Assert.AreEqual(AccountStatuses.Frozen, account.Status);
 }
Exemplo n.º 6
0
 protected Account getting_the_account(AccountContext context)
 {
     return(context.AccountService.GetAccount(context.AccountId));
 }
Exemplo n.º 7
0
 protected void is_on_a_watch_list(AccountContext context)
 {
     context.WatchListService.Answer = true;
 }
Exemplo n.º 8
0
 protected void has_had_activity_in_the_last_year(AccountContext context)
 {
     context.Account.LastActivityDate = DateTime.Today.Subtract(TimeSpan.FromDays(5));
 }
Exemplo n.º 9
0
 protected void the_account_should_have_an_activity_date_of_today(AccountContext context, Account account)
 {
     Assert.AreEqual(DateTime.Today, account.LastActivityDate);
 }
Exemplo n.º 10
0
 protected void is_on_a_watch_list(AccountContext context)
 {
     context.WatchListService.Answer = true;
 }
Exemplo n.º 11
0
 protected void has_had_activity_in_the_last_year(AccountContext context)
 {
     context.Account.LastActivityDate = DateTime.Today.Subtract(TimeSpan.FromDays(5));
 }
Exemplo n.º 12
0
 protected void has_a_positive_balance(AccountContext context)
 {
     context.Account.TotalBalance = 100;
 }
Exemplo n.º 13
0
 protected Account getting_the_account(AccountContext context)
 {
     return context.AccountService.GetAccount(context.AccountId);
 }
Exemplo n.º 14
0
 protected void the_account_status_should_be_frozen(AccountContext context, Account account)
 {
     Assert.AreEqual(AccountStatuses.Frozen, account.Status);
 }
Exemplo n.º 15
0
 protected void the_account_should_have_a_zero_balance(AccountContext context, Account account)
 {
     Assert.AreEqual(0m, account.TotalBalance);
 }
Exemplo n.º 16
0
 protected void give_me_all_the_money(AccountContext context, Account account)
 {
     Assert.Fail("Failed on purpose");
 }
Exemplo n.º 17
0
 protected void has_a_positive_balance(AccountContext context)
 {
     context.Account.TotalBalance = 100;
 }
Exemplo n.º 18
0
 protected void give_me_all_the_money(AccountContext context, Account account)
 {
     Assert.Fail("Failed on purpose");
 }