private void TransactionPayment_RegisterModelVariableBindsWithMyCustomerInfo_ReturnsFirstName() { View = MockRepository.GenerateMock <ICustomerCashView>(); View.Expect(v => v.Ones == View.Ones); CashierPresenter presenter = new CashierPresenter(View); presenter.TransactionPayment(); Assert.Equal("5", View.Ones); }
protected void SubmitTransactionPayment_OnClick(object sender, EventArgs e) { CashierPresenter presenter = new CashierPresenter(this); if (presenter.TransactionPayment()) { Response.Redirect("~/PaymentComplete.aspx"); } else { Response.Write("An Error Occurred"); } }