Beispiel #1
0
 public ReportJobFilesController(IReportJobFileRepository reportJobFileRepository, IReportJobRepository reportJobRepository, UserManager <CryptoUser> userManager, IMapper mapper)
 {
     _reportJobFileRepository = reportJobFileRepository;
     _reportJobRepository     = reportJobRepository;
     _userManager             = userManager;
     _mapper = mapper;
 }
Beispiel #2
0
 public ReportCoordinator(IAppSettings appSettings, IReportJobAgent jobAgent, IConcurrencyCoordinator concurrencyCoordinator, IReportJobRepository reportJobRepository)
 {
     _appSettings            = appSettings;
     _jobAgent               = jobAgent;
     _concurrencyCoordinator = concurrencyCoordinator;
     _reportJobRepository    = reportJobRepository;
 }
        public void ReportCoordinatorTest_SetUp()
        {
            _appSettings            = Substitute.For <IAppSettings>();
            _reportJobAgent         = Substitute.For <IReportJobAgent>();
            _concurrencyCoordinator = Substitute.For <IConcurrencyCoordinator>();
            _reportJobRepository    = Substitute.For <IReportJobRepository>();

            _reportCoordinator = new ReportCoordinator(_appSettings, _reportJobAgent, _concurrencyCoordinator, _reportJobRepository);
        }
        public DashboardModule(IAppSettings appSettings, IReportJobRepository reportJobRepository)
        {
            _appSettings         = appSettings;
            _reportJobRepository = reportJobRepository;

            Get[Actions.Dashboard.Index] = x =>
            {
                AddScript(Scripts.Dashboard.Index);
                return(this.DashboardIndex());
            };

            Post[Actions.Dashboard.Statistics] = x =>
            {
                return(this.DashboardStatistics());
            };
        }
Beispiel #5
0
 public ReportJobService(IReportJobAssembler assembler, IReportJobRepository repository)
     : base(assembler, repository)
 {
 }
Beispiel #6
0
 public void DashboardModuleTest_SetUp()
 {
     _appSettings         = Substitute.For <IAppSettings>();
     _reportJobRepository = Substitute.For <IReportJobRepository>();
 }
Beispiel #7
0
 public void ReportJobRepositoryTest_SetUp()
 {
     _dbConnectionFactory = new DbConnectionFactory();
     _reportJobRepository = new ReportJobRepository(_dbConnectionFactory);
 }