Example #1
0
 public void Setup()
 {
     _mockRepo             = new Mock <IPaymentGatewayRepo>();
     _mockLuhnCheckService = new Mock <ILuhnCheckService>();
     _repo        = _mockRepo.Object;
     _authService = new AuthorizeService(_mockRepo.Object, _mockLuhnCheckService.Object);
 }
 public void Setup()
 {
     _mockRepo       = new Mock <IPaymentGatewayRepo>();
     _repo           = _mockRepo.Object;
     _captureService = new CaptureService(_repo);
 }
Example #3
0
 public CaptureService(IPaymentGatewayRepo repo)
 {
     _repo = repo;
 }
 public AuthorizeService(IPaymentGatewayRepo authRepo, ILuhnCheckService luhnCheckService)
 {
     _authRepo         = authRepo;
     _luhnCheckService = luhnCheckService;
 }
Example #5
0
 public RefundService(IPaymentGatewayRepo repo)
 {
     _repo = repo;
 }
Example #6
0
 public VoidService(IPaymentGatewayRepo _repo)
 {
     this._repo = _repo;
 }