Beispiel #1
0
        public void LookupAccountNameThrowsAnErrorIfAccountNumberNotFound()
        {
            MockEFTControllerWithAccountData controller = new MockEFTControllerWithAccountData();
            NewTransferViewPresenter         presenter  = new NewTransferViewPresenter(controller);

            string AccountName = presenter.GetAccountName("NOTFOUND");
        }
Beispiel #2
0
        public void GetAccountNameReturnsCorrectAccountName()
        {
            MockEFTControllerWithAccountData controller = new MockEFTControllerWithAccountData();
            NewTransferViewPresenter         presenter  = new NewTransferViewPresenter(controller);

            string AccountName = presenter.GetAccountName("GC20003004");

            Assert.AreEqual("GlobalBank Savings 20003004", AccountName);
        }
        public void LookupAccountNameThrowsAnErrorIfAccountNumberNotFound()
        {
            MockEFTControllerWithAccountData controller = new MockEFTControllerWithAccountData();
            NewTransferViewPresenter presenter = new NewTransferViewPresenter(controller);

            string AccountName = presenter.GetAccountName("NOTFOUND");
        }
        public void GetAccountNameReturnsCorrectAccountName()
        {
            MockEFTControllerWithAccountData controller = new MockEFTControllerWithAccountData();
            NewTransferViewPresenter presenter = new NewTransferViewPresenter(controller);

            string AccountName = presenter.GetAccountName("GC20003004");

            Assert.AreEqual("GlobalBank Savings 20003004", AccountName);
        }