public void OnViewInitializedCallsControllerFundsTransferComplete()
        {
            MockEFTController    controller = new MockEFTController();
            SummaryViewPresenter presenter  = new SummaryViewPresenter(controller);
            MockSummaryView      view       = new MockSummaryView();

            presenter.View = view;

            presenter.OnViewInitialized();

            Assert.IsTrue(controller.FundsTransferCompleteCalled);
        }
        public void OnViewInitializedCallsControllerGetTransfersAndSetsTransfersInView()
        {
            MockEFTController controller = new MockEFTController();
            Transfer          transfer   = new Transfer();

            controller.Transfers = new Transfer[] { transfer };
            SummaryViewPresenter presenter = new SummaryViewPresenter(controller);
            MockSummaryView      view      = new MockSummaryView();

            presenter.View = view;

            presenter.OnViewInitialized();

            Assert.IsTrue(controller.GetTransfersCalled);
            Assert.IsTrue(view.TransfersSet);
            Assert.AreEqual(1, view.Transfers.Length);
            Assert.AreSame(transfer, view.Transfers[0]);
        }