Example #1
0
 public void SetUp()
 {
     view      = new MockAddEmployeeView();
     container = new TransactionContainer(null);
     database  = new InMemoryPayrollDatabase();
     presenter = new AddEmployeePresenter(
         view, container, database);
 }
Example #2
0
        public void SetUp()
        {
            window = new AddEmployeeWindow();
            transactionContainer = new TransactionContainer(null);
            presenter            = new AddEmployeePresenter(
                window, transactionContainer, null);

            window.Presenter = presenter;
            window.Show();
        }
Example #3
0
        public void LoadAddEmployeeView(
            TransactionContainer transactionContainer)
        {
            AddEmployeeWindow    view      = new AddEmployeeWindow();
            AddEmployeePresenter presenter =
                new AddEmployeePresenter(view,
                                         transactionContainer, database);

            view.Presenter = presenter;

            LoadView(view);
        }