Exemplo n.º 1
0
 public TaskStatisticService(
     IMemberService memberService,
     IManagementDepartmentService managementDepartmentService,
     ITaskRatioChartModelBuilder ratioChartDataBuilder,
     IAppSettingHelper appSettingHelper,
     ISpentTimeChartDataBuilder spentTimeChartDataBuilder,
     IStatisticFiltersModelBuilder statisticFiltersModelBuilder,
     ITasksInfoBuilder tasksInfoBuilder,
     ICsvHelper csvHelper,
     ITranslationService translationService,
     IEmployeeAbsenceInfoService absenceInfoService,
     IDayAssignService dayAssignService,
     IAddressVisitsChartModelBuilder addressVisitsChartModelBuilder,
     IJobStatusLogService jobStatusLogService,
     ICategoryService categoryService,
     IJobService jobService)
 {
     this.memberService = memberService;
     this.managementDepartmentService  = managementDepartmentService;
     this.ratioChartDataBuilder        = ratioChartDataBuilder;
     this.appSettingHelper             = appSettingHelper;
     this.spentTimeChartDataBuilder    = spentTimeChartDataBuilder;
     this.statisticFiltersModelBuilder = statisticFiltersModelBuilder;
     this.tasksInfoBuilder             = tasksInfoBuilder;
     this.csvHelper                      = csvHelper;
     this.translationService             = translationService;
     this.absenceInfoService             = absenceInfoService;
     this.dayAssignService               = dayAssignService;
     this.addressVisitsChartModelBuilder = addressVisitsChartModelBuilder;
     this.jobStatusLogService            = jobStatusLogService;
     this.categoryService                = categoryService;
     this.jobService                     = jobService;
 }
 public AdminController(IProjectRepository projectRepository, IDataCollectionRepository dataCollectionRepository, ICsvHelper csvHelper, IAppSettingsService appSettingsService, IBus bus)
 {
     _csvHelper = csvHelper;
     _appSettingsService = appSettingsService;
     _bus = bus;
     _projectRepository = projectRepository;
     _dataCollectionRepository = dataCollectionRepository;
 }
Exemplo n.º 3
0
 public UserRepository(
     IConfiguration configuration,
     IHostingEnvironment hostingEnvironment,
     ICacheHelper cacheHelper,
     ICsvHelper csvHelper) :
     base(configuration, hostingEnvironment, cacheHelper, csvHelper)
 {
 }
Exemplo n.º 4
0
 public AdminController(
     IProductRepository productRepository,
     ICsvHelper <Product, ProductCsvMap> csvHelper
     )
 {
     _productRepository = productRepository;
     _csvHelper         = csvHelper;
 }
 public AdminController(IProjectRepository projectRepository, IDataCollectionRepository dataCollectionRepository, ICsvHelper csvHelper, IAppSettingsService appSettingsService, IBus bus)
 {
     _csvHelper          = csvHelper;
     _appSettingsService = appSettingsService;
     _bus = bus;
     _projectRepository        = projectRepository;
     _dataCollectionRepository = dataCollectionRepository;
 }
Exemplo n.º 6
0
 public CsvManager(IWebHostEnvironment hosting, ICsvHandler csv, IGenericRepository <Csv> repository, IProductHandler product, ICsvHelper function, IProtectorHandler protector)
 {
     _hosting    = hosting ?? throw new ArgumentNullException(nameof(_hosting));
     _csvHandler = csv ?? throw new ArgumentNullException(nameof(_csvHandler));
     _repository = repository ?? throw new ArgumentNullException(nameof(_repository));
     _product    = product ?? throw new ArgumentNullException(nameof(_product));
     _csvHelper  = function ?? throw new ArgumentNullException(nameof(_csvHelper));
     _protector  = protector ?? throw new ArgumentNullException(nameof(_protector));
 }
 public void Setup()
 {
     _autoSubstitute           = AutoSubstituteContainer.Create();
     _projectRepository        = _autoSubstitute.Resolve <IProjectRepository>();
     _dataCollectionRepository = _autoSubstitute.Resolve <IDataCollectionRepository>();
     _controller = _autoSubstitute.GetController <AdminController>();
     _context    = _autoSubstitute.Resolve <ControllerContext>();
     _form       = _context.HttpContext.Request.Form;
     _csvHelper  = _autoSubstitute.Resolve <ICsvHelper>();
 }
 public void Setup()
 {
     _autoSubstitute = AutoSubstituteContainer.Create();
     _projectRepository = _autoSubstitute.Resolve<IProjectRepository>();
     _dataCollectionRepository = _autoSubstitute.Resolve<IDataCollectionRepository>();
     _controller = _autoSubstitute.GetController<AdminController>();
     _context = _autoSubstitute.Resolve<ControllerContext>();
     _form = _context.HttpContext.Request.Form;
     _csvHelper = _autoSubstitute.Resolve<ICsvHelper>();
 }
Exemplo n.º 9
0
 public RepositoryBase(
     IConfiguration configuration,
     IHostingEnvironment hostingEnvironment,
     ICacheHelper cacheHelper,
     ICsvHelper csvHelper)
 {
     Configuration      = configuration;
     HostingEnvironment = hostingEnvironment;
     CacheHelper        = cacheHelper;
     CsvHelper          = csvHelper;
 }
Exemplo n.º 10
0
        public MailerJob(string name, string cronInterval, CancellationToken token, MailerJobSettings settings)
        {
            _sentMessageIds = new List <int>();

            CronInterval      = cronInterval;
            CancellationToken = token;

            _customerDataFilePath = settings.CustomerDataFilePath;
            _batchSize            = settings.BatchSize;
            _mailer      = settings.Mailer;
            _logger      = settings.Logger;
            _csvHelper   = settings.CsvHelper;
            _companyData = settings.CompanyData;
            _subjectTemplateDiscountPlaceholder = settings.SubjectTemplateDiscountPlaceholder;
            _subjectTemplate = settings.SubjectTemplate;
        }
Exemplo n.º 11
0
        public SchedulerService(IServiceSettings settings)
        {
            _customerDataFilePath  = settings.InputFilePath;
            _mailDeliveryDirectory = settings.OutputFilePath;

            _messageSendTimeInterval = settings.TimeInterval;

            _messageTemplate = settings.DataTemplate;

            _logger    = settings.Logger;
            _scheduler = settings.Scheduler;
            _job       = settings.Job;

            _csvHelper = settings.CsvHelper;

            _mailer = settings.Mailer;
        }
Exemplo n.º 12
0
 public void Setup()
 {
     _csvHelper = new CsvHelper();
 }
 public void Setup()
 {
     _csvHelper = new CsvHelper();
 }
Exemplo n.º 14
0
 public ExampleController(ILogger<ExampleController> logger, ICsvHelper<Product> csvHelper, IMapper mapper)
 {
     _logger = logger;
     _csvHelper = csvHelper;
     _mapper = mapper;
 }
Exemplo n.º 15
0
 public ListingReports(ICsvHelper csvHelper)
 {
     _csvHelper = csvHelper;
 }
Exemplo n.º 16
0
        public static MailerJobSettings MailerJobSettingsFactory(IConfiguration configuration, ILogger logger, ICsvHelper csvHelper, IMailer mailer)
        {
            var companyData = new Addressee();

            configuration.Bind(global.CompanyData, companyData);

            return(new MailerJobSettings
            {
                Logger = logger,
                CsvHelper = csvHelper,
                Mailer = mailer,

                BatchSize = configuration.GetValue <int>(global.BatchSize),
                CompanyData = companyData,
                CustomerDataFilePath = FilePathFactory(configuration.GetValue <string>(global.CustomerDataFile)),
                SubjectTemplate = configuration.GetValue <string>(global.SubjectTemplate),
                SubjectTemplateDiscountPlaceholder = configuration.GetValue <string>(global.SubjectTemplateDiscountPlaceholder)
            });
        }
Exemplo n.º 17
0
 public AgeCalculator(ICsvHelper csvHelper)
 {
     _csvhelper = csvHelper;
     _records   = _csvhelper.ReadAddressBook();
 }
Exemplo n.º 18
0
 public Coordinator(ILogger <Coordinator> logger, ICsvHelper csvHelper, IProcessor processor)
 {
     _logger    = logger;
     _csvHelper = csvHelper;
     _processor = processor;
 }