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); }
protected void the_account_should_have_an_activity_date_of_today(AccountContext context, Account account) { Assert.AreEqual(DateTime.Today, account.LastActivityDate); }
protected void the_account_should_have_a_zero_balance(AccountContext context, Account account) { Assert.AreEqual(0m, account.TotalBalance); }
protected void the_account_status_should_be_frozen(AccountContext context, Account account) { Assert.AreEqual(AccountStatuses.Frozen, account.Status); }
protected Account getting_the_account(AccountContext context) { return(context.AccountService.GetAccount(context.AccountId)); }
protected void is_on_a_watch_list(AccountContext context) { context.WatchListService.Answer = true; }
protected void has_had_activity_in_the_last_year(AccountContext context) { context.Account.LastActivityDate = DateTime.Today.Subtract(TimeSpan.FromDays(5)); }
protected void has_a_positive_balance(AccountContext context) { context.Account.TotalBalance = 100; }
protected Account getting_the_account(AccountContext context) { return context.AccountService.GetAccount(context.AccountId); }
protected void give_me_all_the_money(AccountContext context, Account account) { Assert.Fail("Failed on purpose"); }