コード例 #1
0
        public static void LoadDefault(OrderFilter filter, PaymentMethodViewModelFactory paymentMethodViewModelFactory)
        {
            filter.PaymentMethods.AddRange(paymentMethodViewModelFactory.GetPaymentMethodViewModels()
                                           .Select(x => new KeyValuePair <string, string>(x.SystemKeyword, x.PaymentMethodId.ToString())));

            filter.OrderStatuses.AddRange(OrderStatus.RegisteredStatuses.Select(x => new KeyValuePair <string, int>(x.Name, x.Id)));
        }
コード例 #2
0
 public CheckoutViewModelFactory(
     LocalizationService localizationService,
     PaymentMethodViewModelFactory paymentMethodViewModelFactory,
     IAddressBookService addressBookService,
     UrlResolver urlResolver,
     ServiceAccessor <HttpContextBase> httpContextAccessor,
     ShipmentViewModelFactory shipmentViewModelFactory,
     ICustomerService customerService,
     IOrganizationService organizationService,
     IBudgetService budgetService,
     ICustomerService customerContext)
 {
     _localizationService           = localizationService;
     _paymentMethodViewModelFactory = paymentMethodViewModelFactory;
     _addressBookService            = addressBookService;
     _urlResolver              = urlResolver;
     _httpContextAccessor      = httpContextAccessor;
     _shipmentViewModelFactory = shipmentViewModelFactory;
     _customerService          = customerService;
     _organizationService      = organizationService;
     _budgetService            = budgetService;
     _customerContext          = customerContext;
 }