public void callback_should_process_payment() { var mockService = new Mock<IPaymentService>(); mockService .Expect(s => s.ProcessPayment(MyMocks.Request.Object.Form)); var con = new PayController(mockService.Object); con.SetFakeControllerContext(); con.Callback(); mockService.VerifyAll(); }
public void callback_should_perform_hand_shake() { var mockService = new Mock<IPaymentService>(); mockService .Expect(s => s.PerformHandShake(MyMocks.Request.Object)); var con = new PayController(mockService.Object); con.SetFakeControllerContext(); con.Callback(); mockService.VerifyAll(); }