示例#1
0
 public void SetUp()
 {
     window           = new PayrollWindow();
     presenter        = new MockPayrollPresenter();
     window.Presenter = presenter;
     window.Show();
 }
示例#2
0
        public void LoadPayrollView()
        {
            PayrollWindow    view      = new PayrollWindow();
            PayrollPresenter presenter =
                new PayrollPresenter(database, this);

            view.Presenter = presenter;
            presenter.View = view;

            LoadView(view);
        }
示例#3
0
        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);
        }