コード例 #1
0
 public EmailController(IUnitOfWork uow, IEmailService emailService, IEmailTemplateService emailTemplateService, IApplicationUserManager userService)
 {
     _uow                  = uow;
     _emailService         = emailService;
     _emailTemplateService = emailTemplateService;
     _userService          = userService;
 }
コード例 #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;
        }
コード例 #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;
            }
        }
コード例 #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;
 }
コード例 #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;
        }
コード例 #7
0
 public EmailSender(IEmailService emailService, ITokenProcessor tokenProcessor, IEmailTemplateService emailTemplateService, IUserService userService)
 {
     _emailService         = emailService;
     _tokenProcessor       = tokenProcessor;
     _emailTemplateService = emailTemplateService;
     _userService          = userService;
 }
コード例 #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;
 }
コード例 #9
0
ファイル: MentorService.cs プロジェクト: mamcer/mentoring
 public MentorService(IUnitOfWork unitOfWork, ILogManager logManager, IEmailTemplateService emailTemplateService, IUserLogService userLogService, IUserService userService)
 {
     _unitOfWork     = unitOfWork;
     _logManager     = logManager;
     _userLogService = userLogService;
     _userService    = userService;
 }
コード例 #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;
 }
コード例 #11
0
 public WorkflowMessageService(IEmailTemplateService emailTemplateService,
     IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, ITokenizer tokenizer)
 {
     this._emailTemplateService = emailTemplateService;
     this._queuedEmailService = queuedEmailService;
     _tokenizer = tokenizer;
     this._emailAccountService = emailAccountService;
 }
コード例 #12
0
 public EmailController(IEmailTemplateService emailTemplateService, ILogger logger, INominationService nominationService, IAwardService awardService, ICustomDateService customDateService)
 {
     _emailTemplateService = emailTemplateService;
     _logger            = logger;
     _nominationService = nominationService;
     _awardService      = awardService;
     _customDateService = customDateService;
 }
コード例 #13
0
 public EmailBodyRequestedMessageReader(
     IEmailTemplateService emailTemplateService,
     Ariane.IServiceBus bus
     )
 {
     this.EmailTemplateService = emailTemplateService;
     this.Bus = bus;
 }
コード例 #14
0
ファイル: EmailService.cs プロジェクト: bevacqua/bruttissimo
        public EmailService(IEmailTemplateService templateService, IEmailRepository emailRepository)
        {
            Ensure.That(() => templateService).IsNotNull();
            Ensure.That(() => emailRepository).IsNotNull();

            this.templateService = templateService;
            this.emailRepository = emailRepository;
        }
コード例 #15
0
 public IssueLogForAdminController(IIssueLogForAdminService issueLogForAdminService, IAppLogService appLogService, IUserService userService, IEmailMessenger emailMessenger, IEmailTemplateService emailTemplateService)
 {
     _issueLogForAdminService = issueLogForAdminService;
     _appLogService = appLogService;
     _userService = userService;
     _emailMessenger = emailMessenger;
     _emailTemplateService = emailTemplateService;
 }
コード例 #16
0
ファイル: EmailService.cs プロジェクト: SindelarPetr/Uniwiki
 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);
 }
コード例 #17
0
 public AccountController(IEmailTemplateService emailTemplateService,
                          IAspNetUserService aspNetUserService,
                          ICountryService countryService)
 {
     _emailTemplateService = emailTemplateService;
     _AspNetUserService    = aspNetUserService;
     _CountryService       = countryService;
 }
コード例 #18
0
 public OrgMemRegController(IOrgMemRegService orgMemRegService, IUserService userService, IEmailMessenger emailMessenger, IEmailTemplateService emailTemplateService, IAppLogService appLogService)
 {
     _orgMemRegService     = orgMemRegService;
     _userService          = userService;
     _emailMessenger       = emailMessenger;
     _emailTemplateService = emailTemplateService;
     _appLogService        = appLogService;
 }
コード例 #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;
 }
コード例 #20
0
 public WorkflowMessageService(IEmailTemplateService emailTemplateService,
                               IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, ITokenizer tokenizer)
 {
     this._emailTemplateService = emailTemplateService;
     this._queuedEmailService   = queuedEmailService;
     _tokenizer = tokenizer;
     this._emailAccountService = emailAccountService;
 }
コード例 #21
0
        public ApplyEmailController(IJobPostingsService jobPostingsService, IAppLogService appLogService, IEmailTemplateService emailTemplateService, IEmailMessenger emailMessenger, IUserService userService)
        {
            _jobPostingsService = jobPostingsService;
            _appLogService = appLogService;
            _emailMessenger = emailMessenger;
            _emailTemplateService = emailTemplateService;
            _userService = userService;

        }
コード例 #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();
 }
コード例 #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;
 }
コード例 #24
0
        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");
        }
コード例 #25
0
 public CampaignsController(ILog log, IEmailService emailService, IEmailTemplateService emailTemplateService,
                            IPayInAddressRepository addressRepository, ICampaignSettingsRepository campaignSettingsRepository)
 {
     _log                        = log;
     _emailService               = emailService;
     _emailTemplateService       = emailTemplateService;
     _addressRepository          = addressRepository;
     _campaignSettingsRepository = campaignSettingsRepository;
 }
コード例 #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;
 }
コード例 #27
0
 public EmailTemplatesController(
     IEmailTemplateService emailTemplateService,
     IWebUserSession webUserSession,
     IDateTime dateTime)
 {
     _emailTemplateService = emailTemplateService;
     _webUserSession       = webUserSession;
     _dateTime             = dateTime;
 }
コード例 #28
0
 public MessageService(
     IEmailTemplateService emailTemplateService,
     ISettingService settingService,
     IEmailSender emailSender)
 {
     _emailTemplateService = emailTemplateService;
     _settingService       = settingService;
     _emailSender          = emailSender;
 }
コード例 #29
0
 public QMailerApiController(
     IEmailTemplateService emailTemplateService,
     Ariane.IServiceBus bus,
     ICacheService cacheService
     )
 {
     this.EmailTemplateService = emailTemplateService;
     this.Bus          = bus;
     this.CacheService = cacheService;
 }
コード例 #30
0
 public PersonController(IPersonService service,
                         IEmailTemplateService emailTemplateService,
                         IEmailService emailService,
                         ILog log)
 {
     _service = service;
     _emailTemplateService = emailTemplateService;
     _emailService         = emailService;
     _log = log;
 }
コード例 #31
0
 public MessageService(
     IEmailTemplateService emailTemplateService,
     IUrlHelper urlHelper,
     IHttpContextAccessor httpContext
     )
 {
     _emailTemplateService = emailTemplateService;
     _urlHelper            = urlHelper;
     _httpContext          = httpContext;
 }
コード例 #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;
        }
コード例 #33
0
ファイル: Organizations.cs プロジェクト: jeason0813/DryIoc
 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;
 }
コード例 #34
0
 public SiteEmailMessageSender(IEmailTemplateService templateService = null)
 {
     if(templateService == null)
     {
         this.templateService = new HardCodedEmailTemplateService();
     }
     else
     {
         this.templateService = templateService;
     }
     
 }
コード例 #35
0
        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);
            }
        }
コード例 #36
0
        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);

        }
コード例 #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;
 }
コード例 #38
0
ファイル: HomeController.cs プロジェクト: thuyhk/ThuanThienVN
 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;
 }
コード例 #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;
            }
            
        }
コード例 #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;
 }
コード例 #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;
        }
コード例 #42
0
 public EmailController(IRepository repository, IEmailTemplateService emailService)
 {
     _repository = repository;
     _emailService = emailService;
 }
コード例 #43
0
 public AccountController(IEmailTemplateService emailTemplateService)
 {
     _emailTemplateService = emailTemplateService;
 }
コード例 #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;
        }
コード例 #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;
 }
コード例 #47
0
 public EmailTemplateController(IUnitOfWork unitOfWork, IEmailTemplateService emailTemplateService)
 {
     this._unitOfWork = unitOfWork;
     this._emailTemplateService = emailTemplateService;
 }
コード例 #48
0
 public ContentController(IUnitOfWork unitOfWork, IContentService contentService, IEmailTemplateService emailTemplateService)
 {
     this._unitOfWork = unitOfWork;
     this._contentService = contentService;
     this._emailTemplateService = emailTemplateService;
 }
コード例 #49
0
ファイル: EmailTemplateController.cs プロジェクト: khoaht/BDW
 public EmailTemplateController(IEmailTemplateService emailTemplateService)
 {
     this.emailTemplateService = emailTemplateService;
 }
コード例 #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;
        }
コード例 #51
0
 public void TestInit()
 {
     // Arrange
     templateService = MockHelpers.GetRazorTemplateService(typeof (EmailTemplateTests));
     assembly = Assembly.GetAssembly(typeof (EmailTemplateTests));
 }
コード例 #52
0
        public TestTemplateServiceInConstructor(IEmailTemplateService templateService)
        {
            Ensure.That(() => templateService).IsNotNull();

            this.templateService = templateService;
        }
コード例 #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;
        }