/// <summary> /// Initializes a new instance of the <see cref="ReportsController"/> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="paramsParser"></param> /// <param name="durationParser"></param> /// <param name="creator"></param> public ReportsController(IReportsRepository repository, IFilterParamsParser paramsParser, IDurationParser durationParser, IReportCreator creator) { _repository = repository ?? throw new ArgumentNullException(nameof(repository)); _paramsParser = paramsParser ?? throw new ArgumentNullException(nameof(paramsParser)); _durationParser = durationParser ?? throw new ArgumentNullException(nameof(durationParser)); _creator = creator ?? throw new ArgumentNullException(nameof(creator)); }
public SubmitFeedbackHandler(IAdoNetUnitOfWork unitOfWork, IReportsRepository reportsRepository, IApplicationRepository applicationRepository) { _unitOfWork = unitOfWork; _reportsRepository = reportsRepository; _applicationRepository = applicationRepository; }
public HomeController() { this.ctx = new StudentDbEntities(); this.repositoryFactory = new ServiceFactory(ctx); this.userRepository = repositoryFactory.GetUserRepository(); this.reportsRepository = repositoryFactory.GetReportsRepository(); }
//private mpsUser _loggedinuser; public ReportsController(IReportsRepository repo, ILogger <ReportsController> logger, IUtils utils, IHostingEnvironment env) { _repo = repo; _logger = logger; _utils = utils; _env = env; }
public SubmitFeedbackHandler(IAdoNetUnitOfWork unitOfWork, IReportsRepository reportsRepository, IEventBus eventBus) { _unitOfWork = unitOfWork; _reportsRepository = reportsRepository; _eventBus = eventBus; }
public LocationsApiController(IRepository<Location> locationsRepository, IUnitsRepository unitsRepository, IReportsRepository reportsRepository) { _locationsRepository = locationsRepository; _unitsRepository = unitsRepository; _reportsRepository = reportsRepository; }
public ReportsService(IReportsRepository reportsRepository, ILenderRepository lenderRepository, IBorrowerRepository borrowerRepository) { _reportsRepository = reportsRepository; _lenderRepository = lenderRepository; _borrowerRepository = borrowerRepository; }
/// <summary> /// Creates a new instance of <see cref="GetReportHandler" />. /// </summary> /// <param name="repository">repository</param> /// <exception cref="ArgumentNullException">repository</exception> public GetReportHandler(IReportsRepository repository) { if (repository == null) { throw new ArgumentNullException("repository"); } _repository = repository; }
public StatisticsApiController(IStatsService statsService, IReportsRepository reportsRepository, IUnitsRepository unitsRepository) { StatsService = statsService; ReportsRepository = reportsRepository; UnitsRepository = unitsRepository; }
public ReportsController(IMapper mapper, IReportsRepository reportsRepository, IUsersRepository usersRepository, IHostingEnvironment hostingEnvironment) { this._mapper = mapper; this._reportsRepository = reportsRepository; this._usersRepository = usersRepository; this._hostingEnvironment = hostingEnvironment; }
public async Task <IActionResult> Entitlement([FromServices] IReportsRepository data, [FromForm] EntitlementSearchParms parms) { if (!ModelState.IsValid) { return(new BadRequestResult()); } EntitlementSearchResults searchObject = await data.GetEntitlementSearchResults(parms); return(Content(JsonConvert.SerializeObject(searchObject), "application/json")); }
public async Task <IActionResult> SearchTA([FromServices] IReportsRepository data, [FromBody] TypeaheadParms parms) { if (!ModelState.IsValid) { return(new BadRequestResult()); } TypeaheadResults results = await data.GetTypeAheadResults(parms); return(Content(JsonConvert.SerializeObject(results), "application/json")); }
public async Task <IActionResult> Accounts([FromServices] IReportsRepository data, [FromForm] ReportParms parms) { if (!ModelState.IsValid) { return(new BadRequestResult()); } ReportResults results = await data.GetAccountSearchResults(parms); return(Content(JsonConvert.SerializeObject(results), "application/json")); }
public AccountController(SignInManager <IdentityUser> signInManager, UserManager <IdentityUser> userManager, IReportsRepository reportRepo, IAreaRepository areaRepo) { _signInManager = signInManager; _userManager = userManager; _reportRepo = reportRepo; _areaRepo = areaRepo; }
public ReportsTests() { // Add the service you want to add like _serviceCollection.AddSingleton<IEncrypt, EncryptDecryptAES>(); _serviceCollection.AddScoped <IReportsRepository, ReportsRepository>(); // Build the service _serviceProvider = _serviceCollection.BuildServiceProvider(); _repoRepository = (IReportsRepository)_serviceProvider.GetService(typeof(IReportsRepository)); _mockContext.Object.Identity.BrokerId = "13240178"; _mockContext.Object.Identity.InstitutionId = "6083"; }
public EmergyHub(IUnitsRepository unitsRepository, IReportsRepository reportsRepository, IRepository<Notification> notificationsRepository, IRepository<Message> messagesRepository, IRepository<Location> locationsRepository) { _unitsRepository = unitsRepository; _reportsRepository = reportsRepository; _notificationsRepository = notificationsRepository; _messagesRepository = messagesRepository; _locationsRepository = locationsRepository; }
public ReportsApiController(IReportsRepository reportsRepository, IUnitsRepository unitsRepository, IRepository<CustomPropertyValue> valuesRepository, IRepository<Resource> resourcesRepository, IRepository<Notification> notificationsRepository, IAssignmentsRepository assignmentsRepository) { _reportsRepository = reportsRepository; _valuesRepository = valuesRepository; _resourcesRepository = resourcesRepository; _unitsRepository = unitsRepository; _notificationsRepository = notificationsRepository; _assignmentsRepository = assignmentsRepository; }
public UnitOfWork(CovidContext context, ApplicationUserManager userManager, ICompaniesRepository companiesRepository, IBranchesRepository branchesRepository, IReviewsRepository reviewsRepository, INewsArticlesRepository newsArticlesRepository, IReportsRepository reportsRepository, IRefreshTokensRepository refreshTokensRepository) { _context = context; UserManager = userManager; Companies = companiesRepository; Branches = branchesRepository; Reviews = reviewsRepository; NewsArticles = newsArticlesRepository; Reports = reportsRepository; RefreshTokens = refreshTokensRepository; }
public async Task <IActionResult> SearchFields([FromServices] IReportsRepository data) { string cacheKey = "customfields"; bool cacheExists = _cache.TryGetItem(cacheKey, _lastUpdated, out CustomSearchFields fields); if (!cacheExists) { fields = await data.GetCustomFields(); _cache.AddItem(cacheKey, _lastUpdated, fields); } return(Content(JsonConvert.SerializeObject(fields), "application/json")); }
public ReportsUow(ApplicationDbContext context, IReportsRepository reports) : base(context) { Reports = reports; }
public AssignmentsApiController(IAssignmentsRepository assignmentsRepository, IReportsRepository reportsRepository) { _assignmentsRepository = assignmentsRepository; _reportsRepository = reportsRepository; }
public ReportsV2Service(IReportsRepository rRepo, IUnitOfWork unitOfWork, IMapper map) : base(rRepo, unitOfWork) { this.rRepo = rRepo; this.map = map; }
public ReportsController(IDataContext context, IReportsRepository reportRepoitory) : base(context) { _reportsRepository = reportRepoitory; }
public ReportsController(IReportsRepository reportsRepository) { this.reportsRepository = reportsRepository; }
/// <summary> /// /// </summary> /// <param name="reportsRepository"></param> /// <param name="reportMgr"></param> public ReportsController(IReportsRepository reportsRepository, IReportManager reportMgr) { _reportMgr = reportMgr; _reportsRepository = reportsRepository; }
public ReportsController(IReportsRepository repoRepository) { _repoRepository = repoRepository; }
public SubmitFeedbackHandler(IAdoNetUnitOfWork unitOfWork, IReportsRepository reportsRepository) { _unitOfWork = unitOfWork; _reportsRepository = reportsRepository; }
public ReportService(IReportsRepository reportsRepository, IPortalSettingsService portalSettingsServiceInstance) { _reportsRepo = reportsRepository; portalSettingsService = portalSettingsServiceInstance; }
public ReportsController(IReportsRepository reportsRepository, IValidate validate) { _validate = validate; _reportsRepository = reportsRepository; }
public ReportController(IAreaRepository areaRepo, IReportsRepository reportRepo) { _reportRepo = reportRepo; _areaRepo = areaRepo; }
public ReportsController(IReportsRepository repository, ILogger logger) { this.repository = repository; this.logger = logger; }
public ReportsAPIController() { _userRepo = UserRepositoryFactory.GetRepository(); _reportsRepository = ReportsRepositoryFactory.GetRepository(); }
public ReportController(IReportsRepository reportsRepo) { _reportsRepo = reportsRepo; }
public ReportsController() { _reports = new ReportsRepository(); }
public ReportsService(IReportsRepository repository) { this.repository = repository; this.reportLodgmentsBookingName = "lodgments-bookings"; }
public ReportsService(IReportsRepository reportsRepository) { _reportsRepository = reportsRepository; }
public ReportsManager(IReportsRepository reportRepository, IPermissionManager permissionManager) { _reportRepository = reportRepository; _permissionManager = permissionManager; }