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());
        }
Exemple #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());
        }