public CustomersController(
     ICustomerApiService customerApiService,
     IJsonFieldsSerializer jsonFieldsSerializer,
     IAclService aclService,
     ICustomerService customerService,
     IStoreMappingService storeMappingService,
     IStoreService storeService,
     IDiscountService discountService,
     ICustomerActivityService customerActivityService,
     ILocalizationService localizationService,
     ICustomerRolesHelper customerRolesHelper,
     IGenericAttributeService genericAttributeService,
     IEncryptionService encryptionService,
     IFactory <Customer> factory,
     ICountryService countryService,
     IMappingHelper mappingHelper,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IPictureService pictureService, ILanguageService languageService) :
     base(jsonFieldsSerializer, aclService, customerService, storeMappingService, storeService, discountService, customerActivityService, localizationService, pictureService)
 {
     _customerApiService            = customerApiService;
     _factory                       = factory;
     _countryService                = countryService;
     _mappingHelper                 = mappingHelper;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _languageService               = languageService;
     _encryptionService             = encryptionService;
     _genericAttributeService       = genericAttributeService;
     _customerRolesHelper           = customerRolesHelper;
 }
        public CustomerDtoValidator(IHttpContextAccessor httpContextAccessor, IJsonHelper jsonHelper, Dictionary <string, object> requestJsonDictionary, ICustomerRolesHelper customerRolesHelper) : base(httpContextAccessor, jsonHelper, requestJsonDictionary)
        {
            _customerRolesHelper = customerRolesHelper;

            SetEmailRule();
            SetRolesRule();
            SetPasswordRule();

            SetBillingAddressRule();
            SetShippingAddressRule();

            SetCustomerAddressesRule();
            SetShoppingCartItemsRule();
        }