Exemplo n.º 1
0
 public RefundHandler(ILogger <RefundHandler> log, IOutputWriter <IList <RefundResponse> > outputWriter,
                      IMobilePayService mobilePayService)
 {
     _log = log;
     _mobilePayService = mobilePayService;
     _outputWriter     = outputWriter;
 }
        public MainViewModel(IProductService productService, IMobilePayService mobilePayService, IPaymentResultHandler paymentResultHandler)
        {
            this.productService = productService;
            this.mobilePayService = mobilePayService;
            this.paymentResultHandler = paymentResultHandler;

            BuyProductCommand = new RelayCommand<Product>(Buy);
            Products = new List<Product>(productService.GetAllProducts());
        }
Exemplo n.º 3
0
 public PurchaseService(CoffeeCardContext context, IMobilePayService mobilePayService,
                        MobilePaySettings mobilePaySettings, IEmailService emailService, IMapperService mapper)
 {
     _context           = context;
     _mobilePayService  = mobilePayService;
     _mobilePaySettings = mobilePaySettings;
     _emailService      = emailService;
     _mapper            = mapper;
 }
Exemplo n.º 4
0
        public MainViewModel(IProductService productService, IMobilePayService mobilePayService, IPaymentResultHandler paymentResultHandler)
        {
            this.productService       = productService;
            this.mobilePayService     = mobilePayService;
            this.paymentResultHandler = paymentResultHandler;

            BuyProductCommand = new RelayCommand <Product>(Buy);
            Products          = new List <Product>(productService.GetAllProducts());
        }
Exemplo n.º 5
0
 public MobilePayController(IMobilePayService mobilePayService)
 {
     _mobilePayService = mobilePayService;
 }