public PersonController(IPersonAppService iPersonAppService, IRecordAppService iRecordAppService, IFaceAppService iFaceAppService, IEmotionAppService iEmotionAppService, IReportAppService iReportAppService, IPersonMapper iPersonMapper, IRecordMapper iRecordMapper, IEmotionMapper iEmotionMapper, IReportMapper iReportMapper) { this.iPersonAppService = iPersonAppService ?? throw new ArgumentNullException(nameof(iPersonAppService)); this.iRecordAppService = iRecordAppService ?? throw new ArgumentNullException(nameof(iRecordAppService)); this.iFaceAppService = iFaceAppService ?? throw new ArgumentNullException(nameof(iFaceAppService)); this.iEmotionAppService = iEmotionAppService ?? throw new ArgumentNullException(nameof(iEmotionAppService)); this.iReportAppService = iReportAppService ?? throw new ArgumentNullException(nameof(iReportAppService)); this.iPersonMapper = iPersonMapper ?? throw new ArgumentNullException(nameof(iPersonMapper)); this.iRecordMapper = iRecordMapper ?? throw new ArgumentNullException(nameof(iRecordMapper)); this.iEmotionMapper = iEmotionMapper ?? throw new ArgumentNullException(nameof(iEmotionMapper)); this.iReportMapper = iReportMapper ?? throw new ArgumentNullException(nameof(iReportMapper)); }
public EmailReportAppService(IReportAppService iReportAppService, IPersonAppService iPersonAppService, IOptionsMonitor <EmailReportingOptions> options) { this.iReportAppService = iReportAppService ?? throw new ArgumentNullException(nameof(iReportAppService)); this.iPersonAppService = iPersonAppService ?? throw new ArgumentNullException(nameof(iPersonAppService)); this.options = options ?? throw new ArgumentNullException(nameof(options)); this.mandrillApi = new Lazy <MandrillApi>(() => new MandrillApi(this.options.CurrentValue.MandrillKey)); }
public ReportController(IReportAppService iReportAppService, IReportMapper iReportMapper) { this.iReportAppService = iReportAppService ?? throw new ArgumentNullException(nameof(iReportAppService)); this.iReportMapper = iReportMapper ?? throw new ArgumentNullException(nameof(iReportMapper)); }
public ReportAppServiceTest() { RegisterInstance(reportProvider.Object); reportAppService = Resolve <IReportAppService>(); reportProvider .Setup(e => e.GetReportUrlAsync(It.IsAny <string>(), It.IsAny <string>())) .Returns(System.Threading.Tasks.Task.FromResult(string.Empty)); // Arrange UsingDbContext(context => { // var data = A.ListOf<ProjectDetail>(5); List <CROPS.Reports.Report> data = new List <CROPS.Reports.Report> { new CROPS.Reports.Report { Id = "0a0c9cbe-b819-4e7c-9172-8b2b0f176f99", ReportId = "0a0c9cbe-b819-4e7c-9172-8b2b0f176f99", IsActive = true, Name = "Report 1", WorkspaceId = "010fd0a9-c71f-4799-be61-308cf64ef731" }, new CROPS.Reports.Report { Id = Guid.NewGuid().ToString(), ReportId = Guid.NewGuid().ToString(), IsActive = true, Name = "Report 0", WorkspaceId = Guid.NewGuid().ToString() }, new CROPS.Reports.Report { Id = Guid.NewGuid().ToString(), ReportId = Guid.NewGuid().ToString(), IsActive = true, Name = "Report 2", WorkspaceId = Guid.NewGuid().ToString() }, new CROPS.Reports.Report { Id = Guid.NewGuid().ToString(), ReportId = Guid.NewGuid().ToString(), IsActive = true, Name = "Report 3", WorkspaceId = Guid.NewGuid().ToString() }, new CROPS.Reports.Report { Id = Guid.NewGuid().ToString(), ReportId = Guid.NewGuid().ToString(), IsActive = true, Name = "Report 4", WorkspaceId = Guid.NewGuid().ToString() } }; List <CROPS.Projects.Project> project = new List <CROPS.Projects.Project> { new CROPS.Projects.Project { Id = 1, WorkspaceId = "010fd0a9-c71f-4799-be61-308cf64ef731", IsActive = true }, new CROPS.Projects.Project { Id = 2, WorkspaceId = Guid.NewGuid().ToString(), IsActive = true }, new CROPS.Projects.Project { Id = 3, WorkspaceId = Guid.NewGuid().ToString(), IsActive = true }, new CROPS.Projects.Project { Id = 4, WorkspaceId = Guid.NewGuid().ToString(), IsActive = true }, new CROPS.Projects.Project { Id = 5, WorkspaceId = Guid.NewGuid().ToString(), IsActive = true } }; context.Report.AddRange(data); context.Project.AddRange(project); }); }
List <Thread> TempThreadList = new List <Thread>(); //临时记录线程信息 /// <summary> /// 构造函数(注入仓储) /// </summary> /// <param name="globalVarRepository"></param> public ExportAppService(IRepository <ExportData, long> exportDataRepository, IRepository <Files, long> filesRepository, IRepository <DownData, long> downDataRepository, IRepository <ExportConfig, long> exportConfigRepository, IDbServerAppService dbServerAppService, IReportAppService reportAppService ) { _exportDataRepository = exportDataRepository; _filesRepository = filesRepository; _downDataRepository = downDataRepository; _exportConfigRepository = exportConfigRepository; _dbServerAppService = dbServerAppService; _reportAppService = reportAppService; }
public ReportController(IReportAppService reportAppService, ITbReportAppService tbReportAppService, IDbServerAppService dbServerAppService, IModulesAppService moduleAppService, IExportAppService exportAppService, IRdlcReportAppService rdlcAppService, IChartReportAppService ChartAppService) { _reportAppService = reportAppService; _tbReportAppService = tbReportAppService; _dbServerAppService = dbServerAppService; _moduleAppService = moduleAppService; _exportAppService = exportAppService; _rdlcAppService = rdlcAppService; _ChartAppService = ChartAppService; }
public ProductionLineReportController(IReportAppService reportAppService, IConfigurationAppService configurationAppService) { _reportAppService = reportAppService; _configurationAppService = configurationAppService; }
public ReportController(IReportAppService reportAppService, IAppSession appSession, ICommonConfiguration commonConfiguration) : base(appSession, commonConfiguration) { _reportAppService = reportAppService; }
public ReportController(IReportAppService reportAppService, IUserNavigationManager userNavigationManager) : base(userNavigationManager) { _reportAppService = reportAppService; }
public ReportController(IReportAppService reportAppService) { ReportAppService = reportAppService; }
public ReportController(IReportAppService appService) { _appService = appService; }
public DepartmentReportController(IReportAppService reportAppService) { _reportAppService = reportAppService; }
public ProjectManpowerReportController(IReportAppService reportAppService) { _reportAppService = reportAppService; }
public TimesheetReportController(IReportAppService reportAppService, IConfigurationAppService configurationAppService) { _reportAppService = reportAppService; _configurationAppService = configurationAppService; }
public ReportController(IReportAppService reportAppService, ISeoAppService seoAppService) : base(seoAppService) { _reportAppService = reportAppService; }