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