Exemplo n.º 1
0
 public EmailController(IUnitOfWork uow, IEmailService emailService, IEmailTemplateService emailTemplateService, IApplicationUserManager userService)
 {
     _uow                  = uow;
     _emailService         = emailService;
     _emailTemplateService = emailTemplateService;
     _userService          = userService;
 }
Exemplo n.º 2
0
        public ListingController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IListingService listingService,
            IPictureService pictureService,
            IListingPictureService ListingPictureservice,
            IOrderService orderService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            ICustomFieldListingService customFieldListingService,
            ISettingDictionaryService settingDictionaryService,
            IListingStatService ListingStatservice,
            IEmailTemplateService emailTemplateService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService)
        {
            _settingService           = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService            = categoryService;
            _listingService             = listingService;
            _pictureService             = pictureService;
            _ListingPictureservice      = ListingPictureservice;
            _orderService               = orderService;
            _customFieldService         = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldListingService  = customFieldListingService;
            _ListingStatservice         = ListingStatservice;
            _emailTemplateService       = emailTemplateService;
            _dataCacheService           = dataCacheService;
            _sqlDbService               = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initialise une nouvelle instance de <see cref="EmailService"/>.
        /// </summary>
        /// <param name="localizer">Les ressources localisées.</param>
        /// <param name="appSettings">La configuration de l'application.</param>
        /// <param name="emailTemplateService">Le service de template emails.</param>
        /// <param name="logger">Le logger utilisé.</param>
        public EmailService(
            [FromServices] IStringLocalizer <EmailService> localizer,
            IOptions <AppSettings> appSettings,
            IEmailTemplateService emailTemplateService,
            [FromServices] ILogger <EmailService> logger)
            : base(logger, localizer)
        {
            if (appSettings == null)
            {
                throw new ArgumentNullException(nameof(appSettings));
            }
            else
            {
                this.appSettings = appSettings.Value;
            }

            if (emailTemplateService == null)
            {
                throw new ArgumentNullException(nameof(emailTemplateService));
            }
            else
            {
                this.emailTemplateService = emailTemplateService;
            }
        }
Exemplo n.º 4
0
 public EmailTemplateController(IEmailTemplateRepository emailTemplateRepository,
                                IEmailTemplateService emailTemplateService, ISessionContext sessionContext)
 {
     _emailTemplateRepository = emailTemplateRepository;
     _emailTemplateService    = emailTemplateService;
     _sessionContext          = sessionContext;
 }
 public EmailTemplateController(IEmailTemplateRepository emailTemplateRepository, IUserRepository userRepository, IEmailService emailService, IEmailTemplateService emailTemplateService)
 {
     _emailTemplateRepository = emailTemplateRepository;
     _userRepository          = userRepository;
     _emailService            = emailService;
     _emailTemplateService    = emailTemplateService;
 }
Exemplo n.º 6
0
        public ManageController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IListingService listingService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            IContentPageService contentPageService,
            IOrderService orderService,
            ISettingDictionaryService settingDictionaryService,
            IEmailTemplateService emailTemplateService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService,
            IPluginFinder pluginFinder)
        {
            _settingService           = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService            = categoryService;
            _listingService             = listingService;
            _customFieldService         = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;

            _orderService = orderService;

            _emailTemplateService = emailTemplateService;
            _contentPageService   = contentPageService;
            _unitOfWorkAsync      = unitOfWorkAsync;
            _dataCacheService     = dataCacheService;
            _sqlDbService         = sqlDbService;
            _pluginFinder         = pluginFinder;
        }
Exemplo n.º 7
0
 public EmailSender(IEmailService emailService, ITokenProcessor tokenProcessor, IEmailTemplateService emailTemplateService, IUserService userService)
 {
     _emailService         = emailService;
     _tokenProcessor       = tokenProcessor;
     _emailTemplateService = emailTemplateService;
     _userService          = userService;
 }
Exemplo n.º 8
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IIdentityServerInteractionService interaction,
     IClientStore clientStore,
     IEventService events,
     IEmailTemplateService emailTemplateService,
     IAccountService accountService,
     IListService listService,
     IRecipeService recipeService,
     ICdnService cdnService,
     IHttpClientFactory httpClientFactory,
     IConfiguration configuration,
     IStringLocalizer <AccountController> localizer,
     IWebHostEnvironment webHostEnvironment,
     ILogger <AccountController> logger)
 {
     _userManager          = userManager;
     _signInManager        = signInManager;
     _interaction          = interaction;
     _clientStore          = clientStore;
     _events               = events;
     _emailTemplateService = emailTemplateService;
     _accountService       = accountService;
     _listService          = listService;
     _recipeService        = recipeService;
     _cdnService           = cdnService;
     _httpClientFactory    = httpClientFactory;
     _configuration        = configuration;
     _localizer            = localizer;
     _webHostEnvironment   = webHostEnvironment;
     _logger               = logger;
 }
Exemplo n.º 9
0
 public MentorService(IUnitOfWork unitOfWork, ILogManager logManager, IEmailTemplateService emailTemplateService, IUserLogService userLogService, IUserService userService)
 {
     _unitOfWork     = unitOfWork;
     _logManager     = logManager;
     _userLogService = userLogService;
     _userService    = userService;
 }
Exemplo n.º 10
0
 public PasswordlessModel(UserManager <Core.Data.Entities.User> userManager, IEmailTemplateService templateService, ILogger <LoginModel> logger, IOptions <SecurityOptions> securityOptions, IMediator mediator)
 {
     _userManager     = userManager;
     _logger          = logger;
     _securityOptions = securityOptions;
     _mediator        = mediator;
     _templateService = templateService;
 }
Exemplo n.º 11
0
 public WorkflowMessageService(IEmailTemplateService emailTemplateService,
     IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, ITokenizer tokenizer)
 {
     this._emailTemplateService = emailTemplateService;
     this._queuedEmailService = queuedEmailService;
     _tokenizer = tokenizer;
     this._emailAccountService = emailAccountService;
 }
Exemplo n.º 12
0
 public EmailController(IEmailTemplateService emailTemplateService, ILogger logger, INominationService nominationService, IAwardService awardService, ICustomDateService customDateService)
 {
     _emailTemplateService = emailTemplateService;
     _logger            = logger;
     _nominationService = nominationService;
     _awardService      = awardService;
     _customDateService = customDateService;
 }
 public EmailBodyRequestedMessageReader(
     IEmailTemplateService emailTemplateService,
     Ariane.IServiceBus bus
     )
 {
     this.EmailTemplateService = emailTemplateService;
     this.Bus = bus;
 }
Exemplo n.º 14
0
        public EmailService(IEmailTemplateService templateService, IEmailRepository emailRepository)
        {
            Ensure.That(() => templateService).IsNotNull();
            Ensure.That(() => emailRepository).IsNotNull();

            this.templateService = templateService;
            this.emailRepository = emailRepository;
        }
Exemplo n.º 15
0
 public IssueLogForAdminController(IIssueLogForAdminService issueLogForAdminService, IAppLogService appLogService, IUserService userService, IEmailMessenger emailMessenger, IEmailTemplateService emailTemplateService)
 {
     _issueLogForAdminService = issueLogForAdminService;
     _appLogService = appLogService;
     _userService = userService;
     _emailMessenger = emailMessenger;
     _emailTemplateService = emailTemplateService;
 }
Exemplo n.º 16
0
 public EmailService(IHttpContextAccessor httpContextAccessor, IEmailTemplateService emailTemplateService, TextService textService, UniwikiConfiguration uniwikiConfiguration, ILogger <EmailService> logger)
 {
     _emailTemplateService = emailTemplateService;
     _textService          = textService;
     _uniwikiConfiguration = uniwikiConfiguration;
     _logger  = logger;
     _baseUrl = GetBaseUri(httpContextAccessor.HttpContext);
 }
Exemplo n.º 17
0
 public AccountController(IEmailTemplateService emailTemplateService,
                          IAspNetUserService aspNetUserService,
                          ICountryService countryService)
 {
     _emailTemplateService = emailTemplateService;
     _AspNetUserService    = aspNetUserService;
     _CountryService       = countryService;
 }
Exemplo n.º 18
0
 public OrgMemRegController(IOrgMemRegService orgMemRegService, IUserService userService, IEmailMessenger emailMessenger, IEmailTemplateService emailTemplateService, IAppLogService appLogService)
 {
     _orgMemRegService     = orgMemRegService;
     _userService          = userService;
     _emailMessenger       = emailMessenger;
     _emailTemplateService = emailTemplateService;
     _appLogService        = appLogService;
 }
Exemplo n.º 19
0
 public UserForgotPasswordCommandHandler(ILoggerFactory loggerFactory, TrainDTrainorContext dataContext, IPasswordHasher passwordHasher, IMapper mapper, IEmailTemplateService emailTemplateService, IOptions <HostingConfiguration> hostingOptions) : base(loggerFactory)
 {
     _dataContext          = dataContext;
     _passwordHasher       = passwordHasher;
     _mapper               = mapper;
     _emailTemplateService = emailTemplateService;
     _hostingOptions       = hostingOptions;
 }
Exemplo n.º 20
0
 public WorkflowMessageService(IEmailTemplateService emailTemplateService,
                               IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, ITokenizer tokenizer)
 {
     this._emailTemplateService = emailTemplateService;
     this._queuedEmailService   = queuedEmailService;
     _tokenizer = tokenizer;
     this._emailAccountService = emailAccountService;
 }
Exemplo n.º 21
0
        public ApplyEmailController(IJobPostingsService jobPostingsService, IAppLogService appLogService, IEmailTemplateService emailTemplateService, IEmailMessenger emailMessenger, IUserService userService)
        {
            _jobPostingsService = jobPostingsService;
            _appLogService = appLogService;
            _emailMessenger = emailMessenger;
            _emailTemplateService = emailTemplateService;
            _userService = userService;

        }
Exemplo n.º 22
0
 public AppTokenController(IAppTokenService appTokenService, IEmailMessenger emailMessenger, IAppLogService appLogService, IUserService userService, IEmailTemplateService emailTemplateService)
 {
     _appTokenService      = appTokenService;
     _emailMessenger       = emailMessenger;
     _appLogService        = appLogService;
     _userService          = userService;
     _emailTemplateService = emailTemplateService;
     currentUserId         = _userService.GetCurrentUserId();
 }
Exemplo n.º 23
0
 public LoginController(IUnitOfWork unitOfWork, IUserService userService, IRoleService roleService,
     IEmailTemplateService emailTemplateService, IEmailQueueService emailQueueService)
 {
     this._unitOfWork = unitOfWork;
     this._userService = userService;
     this._roleService = roleService;
     this._emailTemplateService = emailTemplateService;
     this._emailQueueService = emailQueueService;
 }
        public EmailTemplateEditModelValidator(IEmailTemplateService emailTemplateService)
        {
            RuleFor(x => x.Body).NotNull().WithMessage("required").NotEmpty().WithMessage("required");

            RuleFor(x => x.Body).Must((x, y) => emailTemplateService.IsEmailTemplateValid(x.Id, x.Body, x.NotificationTypeId)).WithMessage(
                "Template didn't parse correctly. Invalid Macros.").When(x => !string.IsNullOrEmpty(x.Body));

            RuleFor(x => x.Subject).NotNull().WithMessage("required").NotEmpty().WithMessage("required");
        }
 public CampaignsController(ILog log, IEmailService emailService, IEmailTemplateService emailTemplateService,
                            IPayInAddressRepository addressRepository, ICampaignSettingsRepository campaignSettingsRepository)
 {
     _log                        = log;
     _emailService               = emailService;
     _emailTemplateService       = emailTemplateService;
     _addressRepository          = addressRepository;
     _campaignSettingsRepository = campaignSettingsRepository;
 }
Exemplo n.º 26
0
 public EmailSender(IEmailService emailService, IEmailTemplateService emailTemplateService, IUserService userService, EmailSenderSettings emailSenderSettings, ILogger logger, IViewAccountant viewAccountant)
 {
     _emailService         = emailService;
     _emailTemplateService = emailTemplateService;
     _userService          = userService;
     _emailSenderSettings  = emailSenderSettings;
     _logger         = logger;
     _viewAccountant = viewAccountant;
 }
Exemplo n.º 27
0
 public EmailTemplatesController(
     IEmailTemplateService emailTemplateService,
     IWebUserSession webUserSession,
     IDateTime dateTime)
 {
     _emailTemplateService = emailTemplateService;
     _webUserSession       = webUserSession;
     _dateTime             = dateTime;
 }
Exemplo n.º 28
0
 public MessageService(
     IEmailTemplateService emailTemplateService,
     ISettingService settingService,
     IEmailSender emailSender)
 {
     _emailTemplateService = emailTemplateService;
     _settingService       = settingService;
     _emailSender          = emailSender;
 }
Exemplo n.º 29
0
 public QMailerApiController(
     IEmailTemplateService emailTemplateService,
     Ariane.IServiceBus bus,
     ICacheService cacheService
     )
 {
     this.EmailTemplateService = emailTemplateService;
     this.Bus          = bus;
     this.CacheService = cacheService;
 }
Exemplo n.º 30
0
 public PersonController(IPersonService service,
                         IEmailTemplateService emailTemplateService,
                         IEmailService emailService,
                         ILog log)
 {
     _service = service;
     _emailTemplateService = emailTemplateService;
     _emailService         = emailService;
     _log = log;
 }
Exemplo n.º 31
0
 public MessageService(
     IEmailTemplateService emailTemplateService,
     IUrlHelper urlHelper,
     IHttpContextAccessor httpContext
     )
 {
     _emailTemplateService = emailTemplateService;
     _urlHelper            = urlHelper;
     _httpContext          = httpContext;
 }
Exemplo n.º 32
0
        public PersonnelService(IDataAccessRepository <Personnel> dal, IMapper mapper, IEmailTemplateService emailTemplateService, IEmailService emailService, IUserService userService)
        {
            _dal = dal;

            _emailService         = emailService;
            _emailTemplateService = emailTemplateService;
            _userService          = userService;

            _mapper = mapper;
        }
Exemplo n.º 33
0
 public UserEmailBuilder(IPsaContextService contextService, IConnClientService ConnClientService, IMasterOrganizationRepository masterOrganizationRepository, IDict dictionary, IAppSettings settings, IFeatureService featureService, IEmailTemplateService emailTemplateService, IDistributorHelperService distributorHelperService)
 {
     ContextService               = contextService;
     ConnClientService            = ConnClientService;
     MasterOrganizationRepository = masterOrganizationRepository;
     Dictionary               = dictionary;
     Settings                 = settings;
     FeatureService           = featureService;
     EmailTemplateService     = emailTemplateService;
     DistributorHelperService = distributorHelperService;
 }
Exemplo n.º 34
0
 public SiteEmailMessageSender(IEmailTemplateService templateService = null)
 {
     if(templateService == null)
     {
         this.templateService = new HardCodedEmailTemplateService();
     }
     else
     {
         this.templateService = templateService;
     }
     
 }
        public ProcessEmail(Guid realmToken, string emailTemplateId, string emailId, IEmailService emailService, IEmailTemplateService emailTemplateService)
        {
            EmailService = emailService;
            EmailTemplateService = emailTemplateService;
            var emailTemplate = EmailTemplateService.GetEmailTemplateById(realmToken, emailTemplateId);
            var email = EmailService.GetEmailById(emailId);

            if (email != null && emailTemplate != null)
            {
                var processedHtml = ReplaceFieldsInHtml(emailTemplate, email);
                SendEmail(processedHtml, email, emailTemplate);
            }
        }
        public EmailsController(IEmailService emailService, IEmailTemplateService emailTemplateService, IRealmService realmService)
        {
            EmailService = emailService;
            EmailTemplateService = emailTemplateService;
            RealmService = realmService;

            var connectionString = ConfigurationManager.AppSettings["Microsoft.ServiceBus.ConnectionString"];
            var namespaceManager = NamespaceManager.CreateFromConnectionString(ConfigurationManager.AppSettings["Microsoft.ServiceBus.ConnectionString"]);
            if (!namespaceManager.QueueExists(QueueName))
                namespaceManager.CreateQueue(QueueName);

            QueueClient = QueueClient.CreateFromConnectionString(connectionString, QueueName);

        }
Exemplo n.º 37
0
 public LoginController(ISecurityDataService securityDataService,
     IAuthenticationContext authenticationContext,
     IEmailTemplateService emailTemplateService,
     IContainer container,
     IRepository repository,
     ISaveEntityService saveEntityService)
 {
     _securityDataService = securityDataService;
     _authenticationContext = authenticationContext;
     _emailTemplateService = emailTemplateService;
     _container = container;
     _repository = repository;
     _saveEntityService = saveEntityService;
 }
Exemplo n.º 38
0
 public HomeController(IUnitOfWork unitOfWork, ICategoryService categoryService,
     IBannerService bannerService, IEmailQueueService emailQueueService,
     IEmailTemplateService emailTemplateService, IContentService contentService,
     IProductService productService, ISolutionService solutionService)
 {
     this._unitOfWork = unitOfWork;
     this._categoryService = categoryService;
     this._bannerService = bannerService;
     this._emailQueueService = emailQueueService;
     this._emailTemplateService = emailTemplateService;
     this._contactService = contentService;
     this._productService = productService;
     this._solutionService = solutionService;
 }
Exemplo n.º 39
0
        //TODO: we should have an option to force only plain text email
        // html emails are a lot more likely to be phished with copies
        // because the link urls are obfuscated to some degree

        public SiteEmailMessageSender(
            ILogger<SiteEmailMessageSender> logger,
            IEmailTemplateService templateService = null)
        {
            log = logger;

            if(templateService == null)
            {
                this.templateService = new HardCodedEmailTemplateService();
            }
            else
            {
                this.templateService = templateService;
            }
            
        }
Exemplo n.º 40
0
 public CheckoutController(IUnitOfWork unitOfWork, ICategoryService categoryService,
     IOrderService orderService, IOrderDetailService orderDetailService,
     ICartService cartService, IEmailQueueService emailQueueService,
     IProductService productService,
     IEmailTemplateService emailTemplateService, IContentService content)
 {
     this._unitOfWork = unitOfWork;
     this._categoryService = categoryService;
     this._productService = productService;
     this._orderService = orderService;
     this._orderDetailService = orderDetailService;
     this._cartService = cartService;
     this._emailQueueService = emailQueueService;
     this._emailTemplateService = emailTemplateService;
     this._content = content;
 }
Exemplo n.º 41
0
        public ListingController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            ICategoryListingTypeService categoryListingTypeService,
            IListingService listingService,
            IListingTypeService ListingTypeService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            ICustomFieldListingService customFieldListingService,
            IContentPageService contentPageService,
            IOrderService orderService,
            ISettingDictionaryService settingDictionaryService,
            IEmailTemplateService emailTemplateService,
            IPictureService pictureService,
            IListingPictureService ListingPictureservice,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _categoryListingTypeService = categoryListingTypeService;

            _listingService = listingService;
            _ListingTypeService = ListingTypeService;

            _pictureService = pictureService;
            _ListingPictureservice = ListingPictureservice;

            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldListingService = customFieldListingService;

            _orderService = orderService;

            _emailTemplateService = emailTemplateService;
            _contentPageService = contentPageService;
            _unitOfWorkAsync = unitOfWorkAsync;
            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;
        }
Exemplo n.º 42
0
 public EmailController(IRepository repository, IEmailTemplateService emailService)
 {
     _repository = repository;
     _emailService = emailService;
 }
Exemplo n.º 43
0
 public AccountController(IEmailTemplateService emailTemplateService)
 {
     _emailTemplateService = emailTemplateService;
 }
Exemplo n.º 44
0
        public PaymentController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IItemService itemService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            IContentPageService contentPageService,
            IOrderService orderService,
            IOrderTransactionService orderTransationService,
            IStripeConnectService stripConnectService,
            ISettingDictionaryService settingDictionaryService,
            IEmailTemplateService emailTemplateService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _itemService = itemService;
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;

            _orderService = orderService;
            _stripConnectService = stripConnectService;
            _orderTransactionService = orderTransationService;

            _emailTemplateService = emailTemplateService;
            _contentPageService = contentPageService;
            _unitOfWorkAsync = unitOfWorkAsync;
            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;
        }
Exemplo n.º 45
0
        public ManageController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IListingService listingService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            IContentPageService contentPageService,
            IOrderService orderService,
            ISettingDictionaryService settingDictionaryService,
            IEmailTemplateService emailTemplateService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService,
            IPluginFinder pluginFinder)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _listingService = listingService;
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;

            _orderService = orderService;

            _emailTemplateService = emailTemplateService;
            _contentPageService = contentPageService;
            _unitOfWorkAsync = unitOfWorkAsync;
            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;
            _pluginFinder = pluginFinder;
        }
 public EmailTemplatesController(IEmailTemplateService emailTemplateService, IRealmService realmService)
 {
     EmailTemplateService = emailTemplateService;
     RealmService = realmService;
 }
Exemplo n.º 47
0
 public EmailTemplateController(IUnitOfWork unitOfWork, IEmailTemplateService emailTemplateService)
 {
     this._unitOfWork = unitOfWork;
     this._emailTemplateService = emailTemplateService;
 }
Exemplo n.º 48
0
 public ContentController(IUnitOfWork unitOfWork, IContentService contentService, IEmailTemplateService emailTemplateService)
 {
     this._unitOfWork = unitOfWork;
     this._contentService = contentService;
     this._emailTemplateService = emailTemplateService;
 }
Exemplo n.º 49
0
 public EmailTemplateController(IEmailTemplateService emailTemplateService)
 {
     this.emailTemplateService = emailTemplateService;
 }
Exemplo n.º 50
0
        public ListingController(
           IUnitOfWorkAsync unitOfWorkAsync,
           ISettingService settingService,
           ICategoryService categoryService,
           IListingService listingService,
           IPictureService pictureService,
           IListingPictureService listingPictureservice,
           IOrderService orderService,
           ICustomFieldService customFieldService,
           ICustomFieldCategoryService customFieldCategoryService,
           ICustomFieldListingService customFieldListingService,
           ISettingDictionaryService settingDictionaryService,
           IListingStatService listingStatservice,
            IListingReviewService listingReviewService,
           IEmailTemplateService emailTemplateService,
           IMessageService messageService,
            IMessageThreadService messageThreadService,
           IMessageParticipantService messageParticipantService,
           IMessageReadStateService messageReadStateService,
           DataCacheService dataCacheService,
           SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _listingService = listingService;
            _listingReviewService = listingReviewService;
            _pictureService = pictureService;
            _listingPictureservice = listingPictureservice;
            _orderService = orderService;
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldListingService = customFieldListingService;
            _ListingStatservice = listingStatservice;
            _emailTemplateService = emailTemplateService;
            _messageService = messageService;
            _messageParticipantService = messageParticipantService;
            _messageReadStateService = messageReadStateService;
            _messageThreadService = messageThreadService;
            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
Exemplo n.º 51
0
 public void TestInit()
 {
     // Arrange
     templateService = MockHelpers.GetRazorTemplateService(typeof (EmailTemplateTests));
     assembly = Assembly.GetAssembly(typeof (EmailTemplateTests));
 }
        public TestTemplateServiceInConstructor(IEmailTemplateService templateService)
        {
            Ensure.That(() => templateService).IsNotNull();

            this.templateService = templateService;
        }
Exemplo n.º 53
0
        public ListingController(
           IUnitOfWorkAsync unitOfWorkAsync,
           ISettingService settingService,
           ICategoryService categoryService,
           IItemService itemService,
           IPictureService pictureService,
           IItemPictureService itemPictureService,
           IOrderService orderService,
           ICustomFieldService customFieldService,
           ICustomFieldCategoryService customFieldCategoryService,
           ICustomFieldItemService customFieldItemService,
           ISettingDictionaryService settingDictionaryService,
           IItemStatService itemStatService,
           IEmailTemplateService emailTemplateService,
           DataCacheService dataCacheService,
           SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _itemService = itemService;
            _pictureService = pictureService;
            _itemPictureService = itemPictureService;
            _orderService = orderService;            
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldItemService = customFieldItemService;
            _itemStatService = itemStatService;
            _emailTemplateService = emailTemplateService;
            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }