Exemple #1
0
 public PaymentGatewayController(IAuthorizeService authorizeService, ICaptureService captureService, IVoidService voidService, IRefundService refundService)
 {
     _authorizeService = authorizeService;
     _captureService   = captureService;
     _voidService      = voidService;
     _refundService    = refundService;
 }
 public void Setup()
 {
     _mockRepo    = new Mock <IPaymentGatewayRepo>();
     _repo        = _mockRepo.Object;
     _voidService = new VoidService(_repo);
 }