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 PostReport(IRepository repository, IReportMapper reportMapper, IMessagePublisher messagePublisher, string reportRequestsTopic) { _repository = repository; _reportMapper = reportMapper; _messagePublisher = messagePublisher; _reportRequestsTopic = reportRequestsTopic; }
public ReportController(IReportAppService iReportAppService, IReportMapper iReportMapper) { this.iReportAppService = iReportAppService ?? throw new ArgumentNullException(nameof(iReportAppService)); this.iReportMapper = iReportMapper ?? throw new ArgumentNullException(nameof(iReportMapper)); }
public PreceptorTimeContextFactory() { //Notice that we are building ContextOptions using Guid.NewGuid().ToString() property as a database //name in order to provide a new, clean in-memory instance for each test class. var contextOptions = new DbContextOptionsBuilder <PreceptorTimeContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .EnableSensitiveDataLogging() .Options; EnsureCreation(contextOptions); ContextInstance = new TestPreceptorTimeContext(contextOptions); ReportMapper = new ReportMapper(); UserInfoMapper = new UserInfoMapper(); UserMapper = new UserMapper(); TimeEntryMapper = new TimeEntryMapper(UserMapper); }
public StandardReportService(IStandardReportRepository repository, ITableValueConverter tableValueConverter, IReportMapper reportMapper) { _repository = repository; _tableValueConverter = tableValueConverter; _reportMapper = reportMapper; }
public ReportsService(ITimeEntryRepository repo, IReportMapper mapper) { _repo = repo; _mapper = mapper; }
public ReportService(WpfAppContext wpfAppContext, IReportMapper reportMapper) { _wpfAppContext = wpfAppContext; _reportMapper = reportMapper; }
public ReportGenerator(IRepository repository, IReportMapper reportMapper) { _repository = repository; _reportMapper = reportMapper; }
public StandardReportBuilder(IStandardReportService standardReportService, IReportMapper reportMapper, IIntervalHelper intervalHelper) { _standardReportService = standardReportService; _reportMapper = reportMapper; _intervalHelper = intervalHelper; }
public GetReport(IRepository repository, IReportMapper reportMapper, ICompletePercentageCalculator completePercentageCalculator) { _repository = repository; _reportMapper = reportMapper; _completePercentageCalculator = completePercentageCalculator; }