Beispiel #1
0
        public void UpdateTransferCallsControllerUpdateTransferInBatch()
        {
            MockEFTController        controller = new MockEFTController();
            NewTransferViewPresenter presenter  = new NewTransferViewPresenter(controller);
            MockNewTransferView      view       = new MockNewTransferView();

            presenter.View = view;
            Transfer updatedTransfer = GetNewTransfer();

            presenter.OnTransferUpdated(updatedTransfer);

            Assert.IsTrue(controller.UpdateTransferInBatchCalled);
            Assert.AreSame(updatedTransfer, controller.TransferUpdatedInBatch);
        }
        public void UpdateTransferCallsControllerUpdateTransferInBatch()
        {
            MockEFTController controller = new MockEFTController();
            NewTransferViewPresenter presenter = new NewTransferViewPresenter(controller);
            MockNewTransferView view = new MockNewTransferView();
            presenter.View = view;
            Transfer updatedTransfer = GetNewTransfer();

            presenter.OnTransferUpdated(updatedTransfer);

            Assert.IsTrue(controller.UpdateTransferInBatchCalled);
            Assert.AreSame(updatedTransfer, controller.TransferUpdatedInBatch);
        }
 protected void TransferBatchDataSource_Updated(object sender, ObjectContainerDataSourceStatusEventArgs e)
 {
     _presenter.OnTransferUpdated((Transfer)e.Instance);
 }