예제 #1
0
 public PaymentPresenter(ViewLoader viewLoader)
 {
     this.viewLoader = viewLoader;
     TransactionContainer.AddAction addAction =
         new TransactionContainer.AddAction(TransactionAdded);
     transactionContainer = new TransactionContainer(addAction);
 }
예제 #2
0
 public PaymentPresenter(ViewLoader viewLoader)
 {
     this.viewLoader = viewLoader;
     TransactionContainer.AddAction addAction= 
         new TransactionContainer.AddAction(TransactionAdded);
     transactionContainer = new TransactionContainer(addAction);
 }
 public AddEmployeePresenter(AddEmployeeView view,
     TransactionContainer transactionContainer)
 {
     this.view = view;
     this.transactionContainer = transactionContainer;
     //this.database = database;
 }
 public AddEmployeePresenter(AddEmployeeView view,
                             TransactionContainer transactionContainer)
 {
     this.view = view;
     this.transactionContainer = transactionContainer;
     //this.database = database;
 }
예제 #5
0
 public void LoadAddSalesReceiptView(
     TransactionContainer transactionContainer)
 {
     AddSalesReceiptWindow view = new AddSalesReceiptWindow();
     AddSalesReceiptPresenter presenter = new AddSalesReceiptPresenter(
         view, transactionContainer);
     view.Presenter = presenter;
     LoadView(view);
 }
예제 #6
0
 public void LoadAddEmployeeView(
     TransactionContainer transactionContainer)
 {
     AddEmployeeWindow view = new AddEmployeeWindow();
     AddEmployeePresenter present = new AddEmployeePresenter(
         view, transactionContainer);
     view.Presenter = present;
     LoadView(view);
 }
예제 #7
0
        public void LoadAddSalesReceiptView(
            TransactionContainer transactionContainer)
        {
            AddSalesReceiptWindow    view      = new AddSalesReceiptWindow();
            AddSalesReceiptPresenter presenter = new AddSalesReceiptPresenter(
                view, transactionContainer);

            view.Presenter = presenter;
            LoadView(view);
        }
예제 #8
0
        public void LoadAddEmployeeView(
            TransactionContainer transactionContainer)
        {
            AddEmployeeWindow    view    = new AddEmployeeWindow();
            AddEmployeePresenter present = new AddEmployeePresenter(
                view, transactionContainer);

            view.Presenter = present;
            LoadView(view);
        }
예제 #9
0
        public void AddAction()
        {
            TransactionContainer container =
                presenter.TransactionContainer;
            Transaction transaction = new MockTransaction();

            container.Add(transaction);

            string expected = transaction.ToString()
                              + Environment.NewLine;

            Assert.AreEqual(expected, view.transactionsText);
        }
 public AddSalesReceiptPresenter(AddSalesReceiptView view,
     TransactionContainer transactionContainer)
 {
     this.view = view;
     this.transactionContainer = transactionContainer;
 }
예제 #11
0
 public AddSalesReceiptPresenter(AddSalesReceiptView view,
                                 TransactionContainer transactionContainer)
 {
     this.view = view;
     this.transactionContainer = transactionContainer;
 }
예제 #12
0
 public void LoadAddSalesReceiptView(TransactionContainer transactionContainer)
 {
     throw new NotImplementedException();
 }
예제 #13
0
 public void LoadAddEmployeeView(
     TransactionContainer transactionContainer)
 {
     addEmployeeViewWasLoaded = true;
 }
예제 #14
0
 public void LoadAddSalesReceiptView(TransactionContainer transactionContainer)
 {
     throw new NotImplementedException();
 }
예제 #15
0
 public void LoadAddEmployeeView(
     TransactionContainer transactionContainer)
 {
     addEmployeeViewWasLoaded = true;
 }