Пример #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);
        }