public PaymentPresenter(ViewLoader viewLoader) { this.viewLoader = viewLoader; TransactionContainer.AddAction addAction = new TransactionContainer.AddAction(TransactionAdded); transactionContainer = new TransactionContainer(addAction); }
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 void LoadAddSalesReceiptView( TransactionContainer transactionContainer) { AddSalesReceiptWindow view = new AddSalesReceiptWindow(); AddSalesReceiptPresenter presenter = new AddSalesReceiptPresenter( view, transactionContainer); view.Presenter = presenter; LoadView(view); }
public void LoadAddEmployeeView( TransactionContainer transactionContainer) { AddEmployeeWindow view = new AddEmployeeWindow(); AddEmployeePresenter present = new AddEmployeePresenter( view, transactionContainer); view.Presenter = present; LoadView(view); }
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; }
public void LoadAddSalesReceiptView(TransactionContainer transactionContainer) { throw new NotImplementedException(); }
public void LoadAddEmployeeView( TransactionContainer transactionContainer) { addEmployeeViewWasLoaded = true; }