public override GlobalBank.Commercial.EBanking.Modules.EFT.BusinessEntities.Account[] GetAccounts()
 {
     List<Account> accounts = new List<Account>();
     Account account = new Account();
     account.Id = Guid.NewGuid();
     account.Number = "GC20003004";
     account.Name = "GlobalBank Savings 20003004";
     accounts.Add(account);
     return accounts.ToArray();
 }
        public void OnViewLoadedCallsControllerGetAccountsAndSetsAccountsInView()
        {
            MockEFTController controller = new MockEFTController();
            Account account = new Account();
            controller.Accounts = new Account[] { account };
            NewTransferViewPresenter presenter = new NewTransferViewPresenter(controller);
            MockNewTransferView view = new MockNewTransferView();
            presenter.View = view;

            presenter.OnViewLoaded();

            Assert.IsTrue(controller.GetAccountsCalled);
            Assert.IsTrue(view.AccountsSet);
            Assert.AreSame(account, view.Accounts[0]);
            Assert.AreEqual(1, view.Accounts.Length);
        }
 public override void CreateAccount(Account account)
 {
     CreateAccountCalled = true;
     CreatedAccount = account;
 }
 public virtual void CreateAccount(Account account)
 {
     account.CustomerId = Thread.CurrentPrincipal.Identity.Name;
     _accountServiceAgent.CreateAccount(account);
 }
 public void CreateAccount(Account account)
 {
     CreateAccountRequestType request = new CreateAccountRequestType();
     request.account = _translator.Translate<AccountTableEntityType>(account);
     _proxy.CreateAccount(request);
 }
 public void CreateAccount(Account account)
 {
     CreateAccountCalled = true;
 }