Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public PostReport(IRepository repository, IReportMapper reportMapper, IMessagePublisher messagePublisher, string reportRequestsTopic)
 {
     _repository          = repository;
     _reportMapper        = reportMapper;
     _messagePublisher    = messagePublisher;
     _reportRequestsTopic = reportRequestsTopic;
 }
Exemplo n.º 3
0
        public ReportController(IReportAppService iReportAppService,
                                IReportMapper iReportMapper)
        {
            this.iReportAppService = iReportAppService ??
                                     throw new ArgumentNullException(nameof(iReportAppService));

            this.iReportMapper = iReportMapper ??
                                 throw new ArgumentNullException(nameof(iReportMapper));
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 public StandardReportService(IStandardReportRepository repository, ITableValueConverter tableValueConverter, IReportMapper reportMapper)
 {
     _repository = repository;
     _tableValueConverter = tableValueConverter;
     _reportMapper = reportMapper;
 }
Exemplo n.º 6
0
 public ReportsService(ITimeEntryRepository repo, IReportMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
 public StandardReportService(IStandardReportRepository repository, ITableValueConverter tableValueConverter, IReportMapper reportMapper)
 {
     _repository          = repository;
     _tableValueConverter = tableValueConverter;
     _reportMapper        = reportMapper;
 }
Exemplo n.º 8
0
 public ReportService(WpfAppContext wpfAppContext, IReportMapper reportMapper)
 {
     _wpfAppContext = wpfAppContext;
     _reportMapper  = reportMapper;
 }
Exemplo n.º 9
0
 public ReportGenerator(IRepository repository, IReportMapper reportMapper)
 {
     _repository   = repository;
     _reportMapper = reportMapper;
 }
Exemplo n.º 10
0
 public StandardReportBuilder(IStandardReportService standardReportService, IReportMapper reportMapper, IIntervalHelper intervalHelper)
 {
     _standardReportService = standardReportService;
     _reportMapper          = reportMapper;
     _intervalHelper        = intervalHelper;
 }
Exemplo n.º 11
0
 public GetReport(IRepository repository, IReportMapper reportMapper, ICompletePercentageCalculator completePercentageCalculator)
 {
     _repository   = repository;
     _reportMapper = reportMapper;
     _completePercentageCalculator = completePercentageCalculator;
 }
Exemplo n.º 12
0
 public StandardReportBuilder(IStandardReportService standardReportService, IReportMapper reportMapper, IIntervalHelper intervalHelper)
 {
     _standardReportService = standardReportService;
     _reportMapper = reportMapper;
     _intervalHelper = intervalHelper;
 }