public void SetUp() { window = new PayrollWindow(); presenter = new MockPayrollPresenter(); window.Presenter = presenter; window.Show(); }
public void LoadPayrollView() { PayrollWindow view = new PayrollWindow(); PayrollPresenter presenter = new PayrollPresenter(database, this); view.Presenter = presenter; presenter.View = view; LoadView(view); }
public void LoadPayrollView() { viewLoader.LoadPayrollView(); Form form = viewLoader.LastLoadedView; Assert.IsTrue(form is PayrollWindow); Assert.IsTrue(form.Visible); PayrollWindow payrollWindow = form as PayrollWindow; PayrollPresenter presenter = payrollWindow.Presenter; Assert.IsNotNull(presenter); Assert.AreSame(form, presenter.View); }