Esempio n. 1
0
 public void SetUp()
 {
     view = new MockPaymentView();
     PayrollDatabase.Clear();
     viewLoader = new MockViewLoader();
     presenter  = new PaymentPresenter(viewLoader)
     {
         View = view
     };
 }
        public void LoadPaymentView()
        {
            PaymentWindow    view    = new PaymentWindow();
            PaymentPresenter present = new PaymentPresenter(this);

            view.Presnet = present;
            present.View = view;

            LoadView(view);
        }
 public void SetUp()
 {
     view = new MockPaymentView();
     PayrollDatabase.Clear();
     viewLoader = new MockViewLoader();
     presenter = new PaymentPresenter(viewLoader)
     {
         View = view
     };
 }
        public void LoadPaymentView()
        {
            PaymentWindow view = new PaymentWindow();
            PaymentPresenter present = new PaymentPresenter(this);

            view.Presnet = present;
            present.View = view;

            LoadView(view);
        }