Exemplo n.º 1
0
 public TaxRateController(ITaxRateService taxRateService, ITaxZoneService taxZoneService,
                          ITaxClassService taxClassService, ISettingService settingService)
 {
     this.taxRateService  = taxRateService;
     this.taxZoneService  = taxZoneService;
     this.taxClassService = taxClassService;
     this.settingService  = settingService;
 }
Exemplo n.º 2
0
 public TaxRateController(ITaxRateService taxRateService, ITaxZoneService taxZoneService, 
     ITaxClassService taxClassService, ISettingService settingService)
 {
     this.taxRateService = taxRateService;
     this.taxZoneService = taxZoneService;
     this.taxClassService = taxClassService;
     this.settingService = settingService;
 }
Exemplo n.º 3
0
        public TaxZoneViewModelValidator(ITaxZoneService taxZoneService)
        {
            RuleFor(z => z.Name).NotEmpty();
            RuleFor(z => z).Must(
                z => !taxZoneService.FindAll().Any(d => d.Id != z.Id && d.Name == z.Name))
            .WithName("Name")
            .WithMessage("Name is already used".TA());

            // TODO: Check for conflicts of countries or regions are defined in other tax zones
        }
Exemplo n.º 4
0
 public ShoppingCartController(DataContext db, ICurrentUser currentUser, ISettingService settings,
                               ITaxZoneService taxZoneService, ICustomerService customerService, ITaxRateService taxRateService,
                               IShippingService shippingService, IProductSkuService productSkuService, IProductService productService) : base(db, currentUser)
 {
     this.settings          = settings;
     this.taxZoneService    = taxZoneService;
     this.customerService   = customerService;
     this.taxRateService    = taxRateService;
     this.shippingService   = shippingService;
     this.productSkuService = productSkuService;
     this.productService    = productService;
 }
Exemplo n.º 5
0
 public ShoppingCartController(DataContext db, ICurrentUser currentUser, ISettingService settings,
     ITaxZoneService taxZoneService, ICustomerService customerService, ITaxRateService taxRateService,
     IShippingService shippingService, IProductSkuService productSkuService, IProductService productService) : base(db, currentUser)
 {
     this.settings = settings;
     this.taxZoneService = taxZoneService;
     this.customerService = customerService;
     this.taxRateService = taxRateService;
     this.shippingService = shippingService;
     this.productSkuService = productSkuService;
     this.productService = productService;
 }
Exemplo n.º 6
0
 public TaxZoneController(ITaxZoneService taxZoneService, ICountryService countryService)
 {
     this.taxZoneService = taxZoneService;
     this.countryService = countryService;
 }
Exemplo n.º 7
0
 public TaxService(ITaxZoneService taxZoneService, ITaxRateService taxRateService)
 {
     this.taxZoneService = taxZoneService;
     this.taxRateService = taxRateService;
 }
Exemplo n.º 8
0
 public TaxZoneController(ITaxZoneService taxZoneService, ICountryService countryService)
 {
     this.taxZoneService = taxZoneService;
     this.countryService = countryService;
 }
Exemplo n.º 9
0
 public TaxService(ITaxZoneService taxZoneService, ITaxRateService taxRateService)
 {
     this.taxZoneService = taxZoneService;
     this.taxRateService = taxRateService;
 }