protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { _presenter.OnViewInitialized(); } _presenter.OnViewLoaded(); }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { _presenter.OnViewInitialized(); } _presenter.OnViewLoaded(); apptDetails.Ubrn = _currentAppointment.UBRN; SetCreateButtonVisibility(); }
public void OnViewLoadedCallsControllerCurrentCustomerAndViewSetCustomer() { MockCustomersController controller = new MockCustomersController(); Customer customer = controller.InnerCurrentCustomer = new Customer(); SummaryViewPresenter presenter = new SummaryViewPresenter(controller); MockSummaryView view = new MockSummaryView(); presenter.View = view; presenter.OnViewLoaded(); Assert.IsTrue(controller.CurrentCustomerRetrieved); Assert.IsTrue(view.CustomerSet); Assert.AreSame(customer, view.Customer); }