コード例 #1
0
 public RefundHandler(ILogger <RefundHandler> log, IOutputWriter <IList <RefundResponse> > outputWriter,
                      IMobilePayService mobilePayService)
 {
     _log = log;
     _mobilePayService = mobilePayService;
     _outputWriter     = outputWriter;
 }
コード例 #2
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());
        }
コード例 #3
0
 public PurchaseService(CoffeeCardContext context, IMobilePayService mobilePayService,
                        MobilePaySettings mobilePaySettings, IEmailService emailService, IMapperService mapper)
 {
     _context           = context;
     _mobilePayService  = mobilePayService;
     _mobilePaySettings = mobilePaySettings;
     _emailService      = emailService;
     _mapper            = mapper;
 }
コード例 #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());
        }
コード例 #5
0
 public MobilePayController(IMobilePayService mobilePayService)
 {
     _mobilePayService = mobilePayService;
 }