public OnlinePaymentController(ITempcartService tempcartService, ICustomerRepository customerRepository, IProspectCustomerService prospectCustomerService , IEligibilityService eligibilityService, IChargeCardRepository chargeCardRepository, IEventSchedulerService eventSchedulerService, IConfigurationSettingRepository configurationSettingRepository , ISettings settings, IValidator <PaymentInstrumentEditModel> paymentValidator, IEventSchedulingSlotService slotService, IAddressService addressService, IStateRepository stateRepository , ICustomerService customerService, IPaymentController paymentController, ICorporateAccountRepository corporateAccountRepository, IEmailNotificationModelsFactory emailNotificationModelsFactory , IEventRepository eventRepository, ICustomerRegistrationService customerRegistrationService, INotifier notifier, ICallQueueCustomerRepository callQueueCustomerRepository, IEventSchedulingSlotService eventSchedulingSlotService, IGiftCertificateService giftCertificateService, IUniqueItemRepository <ProspectCustomer> uniqueItemRepository, IToolTipRepository toolTipRepository ) { _tempcartService = tempcartService; _customerRepository = customerRepository; _prospectCustomerService = prospectCustomerService; _eligibilityService = eligibilityService; _chargeCardRepository = chargeCardRepository; _eventSchedulerService = eventSchedulerService; _settings = settings; _paymentValidator = paymentValidator; _slotService = slotService; _addressService = addressService; _stateRepository = stateRepository; _customerService = customerService; _paymentController = paymentController; _corporateAccountRepository = corporateAccountRepository; _emailNotificationModelsFactory = emailNotificationModelsFactory; _eventRepository = eventRepository; _customerRegistrationService = customerRegistrationService; _notifier = notifier; _callQueueCustomerRepository = callQueueCustomerRepository; _eventSchedulingSlotService = eventSchedulingSlotService; _giftCertificateService = giftCertificateService; _configurationSettingRepository = configurationSettingRepository; _enableTexting = Convert.ToBoolean(configurationSettingRepository.GetConfigurationValue(ConfigurationSettingName.EnableSmsNotification)); _prospectCustomerRepository = uniqueItemRepository; _toolTipRepository = toolTipRepository; }
public SchedulingCustomerEditModelValidator(IUserRepository <User> userRepository, ICustomerRepository customerRepository, IToolTipRepository toolTipRepository) { _userRepository = userRepository; _customerRepository = customerRepository; _toolTipRepository = toolTipRepository; RuleFor(x => x.Email).NotNull().WithMessage("required").When(x => !x.IsRegisteringForCorporateEvent).EmailAddress().When(x => x.Id < 1); RuleFor(x => x.Email).Must((x, email) => EmailIsUnique(email, x.Id)).WithMessage("Already in use"); RuleFor(x => x.FullName).SetValidator(new NameValidator()); RuleFor(x => x.Password).NotNull().NotEmpty().Length(6, 64).WithMessage("required, 6-64 chars").When(x => x.Id < 1); RuleFor(x => x.Password).Equal(x => x.ConfirmPassword).When(x => x.Id < 1); RuleFor(x => x.HomeNumber).NotNull().NotEmpty().WithMessage("required"); RuleFor(x => x.InsuranceId) .Must((x, insuranceId) => !string.IsNullOrEmpty(insuranceId)) .WithMessage(InsuranceIdMessage()) .When(x => x.InsuranceIdRequired); RuleFor(x => x.ConfirmationToEnablTexting).NotNull().WithMessage("required").NotEmpty().WithMessage("required").When(x => x.EnableTexting); RuleFor(x => x.PhoneCell).NotNull().WithMessage("required").NotEmpty().WithMessage("required").When(x => x.EnableTexting && x.ConfirmationToEnablTexting.HasValue && x.ConfirmationToEnablTexting.Value); RuleFor(x => x.ConfirmationToEnableVoiceMail).NotNull().WithMessage("required").NotEmpty().WithMessage("required").When(x => x.EnableVoiceMail); RuleFor(x => x.HomeNumber).NotNull().WithMessage("required").NotEmpty().WithMessage("required").When(x => x.EnableVoiceMail && x.ConfirmationToEnableVoiceMail.HasValue && x.ConfirmationToEnableVoiceMail.Value); }
public EventSchedulerService(IEventRepository eventRepository, IAppointmentRepository appointmentRepository, IEventTestRepository eventTestRepository, IEventPackageRepository eventPackageRepository, IEventCustomerSummaryModelFactory eventCustomerSummaryModelFactory, IHostRepository hostRepository, ITempCartRepository tempCartRepository, IOnlineSchedulingDataFactory onlineSchedulingDataFactory, IValidator <SourceCodeApplyEditModel> sourceCodeValidator, ISourceCodeRepository sourceCodeRepository, ICustomerRepository customerRepository, IElectronicProductRepository electronicProductRepository, IShippingOptionRepository shippingOptionRepository, IPaymentController paymentController, IEventCustomerRepository eventCustomerRepository, IShippingController shippingController, IOrderController orderController, IAddressRepository addressRepository, IHospitalPartnerRepository hospitalPartnerRepository, IShippingDetailOrderDetailRepository shipingDetailOrderDetailRepository, IOrganizationRepository organizationRepository, IOrderRepository orderRepository, IRefundRequestRepository refundRequestRepository, IToolTipRepository toolTipRepository, IConfigurationSettingRepository configurationSettingRepository, IEventSchedulingSlotService slotService, IEventSchedulingSlotRepository slotRepository, IEventAppointmentService eventAppointmentService, IEligibilityRepository eligibilityRepository, IChargeCardRepository chargeCardRepository, ICorporateAccountRepository corporateAccountRepository) { _customerRepository = customerRepository; _eventRepository = eventRepository; _appointmentRepository = appointmentRepository; _eventPackageRepository = eventPackageRepository; _eventTestRepository = eventTestRepository; _tempCartRepository = tempCartRepository; _hostRepository = hostRepository; _onlineSchedulingDataFactory = onlineSchedulingDataFactory; _sourceCodeValidator = sourceCodeValidator; _sourceCodeRepository = sourceCodeRepository; _eventCustomerSummaryModelFactory = eventCustomerSummaryModelFactory; _productRepository = electronicProductRepository; _shippingOptionRepository = shippingOptionRepository; _paymentController = paymentController; _eventCustomerRepository = eventCustomerRepository; _shippingController = shippingController; _orderController = orderController; _shipingDetailOrderDetailRepository = shipingDetailOrderDetailRepository; _orderRepository = orderRepository; _addressRepository = addressRepository; _hospitalPartnerRepository = hospitalPartnerRepository; _organizationRepository = organizationRepository; _refundRequestRepository = refundRequestRepository; _toolTipRepository = toolTipRepository; _configurationSettingRepository = configurationSettingRepository; _slotService = slotService; _slotRepository = slotRepository; _eventAppointmentService = eventAppointmentService; _eligibilityRepository = eligibilityRepository; _chargeCardRepository = chargeCardRepository; _corporateAccountRepository = corporateAccountRepository; }
public ShippingOptionRepository(IToolTipRepository tooltipRepository) : base(new ShippingOptionMapper()) { _tooltipRepository = tooltipRepository; }