public EditBillingAddressFlyoutViewModel(IBillingAddressUserControlViewModel billingAddressUserControlViewModel, ICheckoutDataRepository checkoutDataRepository)
 {
     _checkoutDataRepository = checkoutDataRepository;
     _viewModel = billingAddressUserControlViewModel;
     SaveCommand = new DelegateCommand(SaveBillingAddress);
     GoBackCommand = new DelegateCommand(() => GoBack(), () => true);
 }
        public BillingAddressFlyoutViewModel(IBillingAddressUserControlViewModel billingAddressViewModel, IResourceLoader resourceLoader)
        {
            _billingAddressViewModel = billingAddressViewModel;
            _resourceLoader = resourceLoader;

            SaveCommand = new DelegateCommand(SaveBillingAddress);
            GoBackCommand = new DelegateCommand(() => GoBack());
        }
        public BillingAddressPageViewModel(IBillingAddressUserControlViewModel billingAddressViewModel, IResourceLoader resourceLoader, IAlertMessageService alertMessageService, IAccountService accountService, INavigationService navigationService)
        {
            _billingAddressViewModel = billingAddressViewModel;
            _resourceLoader          = resourceLoader;
            _alertMessageService     = alertMessageService;
            _accountService          = accountService;
            _navigationService       = navigationService;

            SaveCommand = DelegateCommand.FromAsyncHandler(SaveAsync);
        }
        public BillingAddressPageViewModel(IBillingAddressUserControlViewModel billingAddressViewModel, IResourceLoader resourceLoader, IAlertMessageService alertMessageService, IAccountService accountService, INavigationService navigationService)
        {
            _billingAddressViewModel = billingAddressViewModel;
            _resourceLoader = resourceLoader;
            _alertMessageService = alertMessageService;
            _accountService = accountService;
            _navigationService = navigationService;

            SaveCommand = DelegateCommand.FromAsyncHandler(SaveAsync);
        }
        public CheckoutHubPageViewModel(INavigationService navigationService, IAccountService accountService, IOrderRepository orderRepository, IShoppingCartRepository shoppingCartRepository,
                                        IShippingAddressUserControlViewModel shippingAddressViewModel, IBillingAddressUserControlViewModel billingAddressViewModel, IPaymentMethodUserControlViewModel paymentMethodViewModel,
                                        IResourceLoader resourceLoader, IAlertMessageService alertMessageService)
        {
            _navigationService        = navigationService;
            _accountService           = accountService;
            _orderRepository          = orderRepository;
            _shoppingCartRepository   = shoppingCartRepository;
            _shippingAddressViewModel = shippingAddressViewModel;
            _billingAddressViewModel  = billingAddressViewModel;
            _paymentMethodViewModel   = paymentMethodViewModel;
            _alertMessageService      = alertMessageService;
            _resourceLoader           = resourceLoader;

            GoNextCommand = new DelegateCommand(GoNext);
        }
        public CheckoutHubPageViewModel(INavigationService navigationService, IAccountService accountService, IOrderRepository orderRepository, IShoppingCartRepository shoppingCartRepository,
                                        IShippingAddressUserControlViewModel shippingAddressViewModel, IBillingAddressUserControlViewModel billingAddressViewModel, IPaymentMethodUserControlViewModel paymentMethodViewModel,
                                        IFlyoutService flyoutService, IResourceLoader resourceLoader, IAlertMessageService alertMessageService)
        {
            _navigationService = navigationService;
            _accountService = accountService;
            _orderRepository = orderRepository;
            _shoppingCartRepository = shoppingCartRepository;
            _shippingAddressViewModel = shippingAddressViewModel;
            _billingAddressViewModel = billingAddressViewModel;
            _paymentMethodViewModel = paymentMethodViewModel;
            _flyoutService = flyoutService;
            _alertMessageService = alertMessageService;
            _resourceLoader = resourceLoader;

            GoBackCommand = new DelegateCommand(navigationService.GoBack, navigationService.CanGoBack);
            GoNextCommand = new DelegateCommand(GoNext);
        }