public PaymentController(IGatewayFactory gatewayFactory, IMapper mapper, IConfiguration configuration, ILogger <PaymentController> logger) { _mapper = mapper; _gatewayFactory = gatewayFactory; _configuration = configuration; _logger = logger; }
public OrderController(IUserService userService, IOrderService orderService, IDeliveryService deliveryService, IPaymentService paymentService, IGatewayFactory gatewayFactory, IConfiguration configuration) { _userService = userService; _orderService = orderService; _paymentService = paymentService; _gatewayFectory = gatewayFactory; _deliveryService = deliveryService; _configuration = configuration; }
public GatewayConfigurationBuilder(IGatewayFactory gatewayFactory, ILocator locator) //TODO: Remove gateWay factory { Contract.Requires(gatewayFactory != null, "GatewayFactory should not be null"); Contract.Requires(locator != null, "Locator should not be null"); _gatewayFactory = gatewayFactory; _serviceLocator = locator; _hosts = new List <Host>(); _userCrenedtial = new UserCrenedtial("guest", "guest"); _eventSubscriberThreadCount = 1; _commandHandlerThreadCount = 1; }
public OrderService(AppUnitOfWork appUOW, IGatewayFactory gatewayFactory, IProductService productSrv, IDeliveryService deliverySrv, ITempOrderDetailService tempOrderDetailSrv) { _appUow = appUOW; _orderRepo = appUOW.OrderRepo; _productSrv = productSrv; _gatewayFactory = gatewayFactory; _deliverySrv = deliverySrv; _tempOrderDetailSrv = tempOrderDetailSrv; }
public GatewayFactoryTests() { _gatewayFactory = new GatewayFactory("http://dummy.com"); }
public PaymentService(IGatewayFactory gatewayFactory) { _gatewayFactory = gatewayFactory; }
public GatewayService(IGatewayRepository repository, IGatewayFactory factory) { _repository = repository; _factory = factory; }