public void OnApproveCustomerCallsControllerApproveCurrentCustomer()
        {
            MockCustomersController controller = new MockCustomersController();
            ApproveCustomerViewPresenter presenter = new ApproveCustomerViewPresenter(controller);
            MockApproveCustomerView view = new MockApproveCustomerView();
            presenter.View = view;

            presenter.OnApproveCustomer();

            Assert.IsTrue(controller.ApproveCurrentCustomerCalled);
        }
        public void OnApproveCustomerCallsControllerApproveCurrentCustomer()
        {
            MockCustomersController      controller = new MockCustomersController();
            ApproveCustomerViewPresenter presenter  = new ApproveCustomerViewPresenter(controller);
            MockApproveCustomerView      view       = new MockApproveCustomerView();

            presenter.View = view;

            presenter.OnApproveCustomer();

            Assert.IsTrue(controller.ApproveCurrentCustomerCalled);
        }
 protected void ApproveCustomerButton_Click(object sender, EventArgs e)
 {
     _presenter.OnApproveCustomer();
 }