Example #1
0
 public AuthenticateService(IContextManager contextManager, IGenerateEmailWrapper generateEmailWrapper, Settings settings, IEmailWrapper emailWrapper)
 {
     _contextManager       = contextManager;
     _generateEmailWrapper = generateEmailWrapper;
     _urlAdress            = settings.FrontUrl;
     _emailWrapper         = emailWrapper;
 }
Example #2
0
 public SchedulerService(IMapper mapper, IContextManager contextManager, IGenerateEmailWrapper generateEmailWrapper, IEmailWrapper emailWrapper, Settings settings)
 {
     _mapper               = mapper;
     _contextManager       = contextManager;
     _emailWrapper         = emailWrapper;
     _generateEmailWrapper = generateEmailWrapper;
     _urlAdress            = settings.FrontUrl;
 }
 public UserService(IContextManager contextManager, IGenerateEmailWrapper generateEmailWrapper, IUploadService uploadService, IMapper mapper
                    , Settings settings, IEmailWrapper emailWrapper)
 {
     _generateEmailWrapper = generateEmailWrapper;
     _contextManager       = contextManager;
     _uploadService        = uploadService;
     _urlAdress            = settings.FrontUrl;
     _emailWrapper         = emailWrapper;
     _mapper = mapper;
 }
 public CompanyService(IContextManager contextManager, IGenerateEmailWrapper generateEmailWrapper, IUploadService uploadService, Settings settings
                       , IEmailWrapper emailWrapper, IMapper mapper, ISubscriptionService subscriptionService)
 {
     _generateEmailWrapper = generateEmailWrapper;
     _contextManager       = contextManager;
     _uploadService        = uploadService;
     _urlAdress            = settings.FrontUrl;
     _emailWrapper         = emailWrapper;
     _mapper = mapper;
     _subscriptionService = subscriptionService;
 }
        public Repository()
        {
            SmtpWrapper = new DefaultSmtpWrapper();
            EmailWrapper = new DefaultEmailWrapper();
            InvoiceWrapper = new DefaultInvoiceWrapper();
            ClientsWrapper = new DefaultClientsWrappers();
            CompanyInformationWrapper = new DefaultCompanyInformationWrapper();
            TermsWrapper = new DefaultTermsWrapper();
            StorageWrapper = new DefaultStorageWrapper();

            EnsureConfigsExist();

            SmtpWrapper.Load();
            EmailWrapper.Load();
            InvoiceWrapper.Load();
            ClientsWrapper.Load();
            CompanyInformationWrapper.Load();
            TermsWrapper.Load();
            StorageWrapper.Load();
        }
 public SubscriptionService(IMapper mapper, IContextManager contextManager, IGenerateEmailWrapper generateEmailWrapper, IEmailWrapper emailWrapper, IUploadService uploadService)
 {
     _mapper         = mapper;
     _contextManager = contextManager;
     _uploadService  = uploadService;
 }
 public GenerateEmailWrapper(IEmailWrapper emailWrapper)
 {
     _emailWrapper = emailWrapper;
 }