public CommonEntityStageManager(UserConnection userConnection,
                                 IGetRepository <CommonStageData> entityStageRepository,
                                 ICommonEntityInStageRepository <EntityInHistoricalStage> entityInStageRepository,
                                 StageHistorySetting stageHistorySetting)
     : base(userConnection, entityStageRepository, entityInStageRepository, stageHistorySetting)
 {
 }
 public CacheGetRepositoryProxy(UserConnection userConnection, IGetRepository <TData> repository, string schemaName)
 {
     userConnection.CheckArgumentNull(nameof(userConnection));
     repository.CheckArgumentNull(nameof(repository));
     schemaName.CheckArgumentNullOrWhiteSpace(nameof(schemaName));
     UserConnection = userConnection;
     Repository     = repository;
     SchemaName     = schemaName;
 }
Example #3
0
 public ProductController(IGetRepository <Category> categoryRepostiroy,
                          IRepository <Product> genericProductRepostiroy,
                          IProductRepository productRepository,
                          ICategoryRepository categoryRepository)
 {
     _genericCategoryRepostiroy = categoryRepostiroy;
     _genericProductRepostiroy  = genericProductRepostiroy;
     _productRepository         = productRepository;
     _categoryRepository        = categoryRepository;
 }
Example #4
0
        public TravelReviewService()
        {
            IRepository <TravelReview> repository = RepositoryFactory.GetRepository <TravelReview>();

            this._saveRepository = repository;
            this._getRepository  = repository;

            this._transportService     = new TransportService();
            this._travelFeelingService = new TravelFeelingService();
        }
 public BagViewModelToCreateBagTranslator(ITranslator <ViewModels.RefValue, Domain.RefValue> refValueTranslator,
                                          ISearchRepository <Domain.Tea.Bag> bagRepository,
                                          IGetRepository <IApplicationUser> userRepository,
                                          IClock clock)
 {
     RefValueTranslator = refValueTranslator ?? throw new System.ArgumentNullException(nameof(refValueTranslator));
     BagRepository      = bagRepository ?? throw new System.ArgumentNullException(nameof(bagRepository));
     UserRepository     = userRepository ?? throw new System.ArgumentNullException(nameof(userRepository));
     Clock = clock ?? throw new System.ArgumentNullException(nameof(clock));
 }
 public UpdateCommandHandler(IUpdateRepository <TEntity> updateRepository,
                             IGetRepository <TEntity> getRepository,
                             ILinqSearchRepository <IActivity> activityRepository,
                             IActivityAuthorizer authorizer,
                             ITranslator <TViewModel, TEntity> translator)
 {
     UpdateRepository   = updateRepository ?? throw new System.ArgumentNullException(nameof(updateRepository));
     GetRepository      = getRepository ?? throw new System.ArgumentNullException(nameof(getRepository));
     ActivityRepository = activityRepository ?? throw new System.ArgumentNullException(nameof(activityRepository));
     Authorizer         = authorizer ?? throw new System.ArgumentNullException(nameof(authorizer));
     Translator         = translator ?? throw new System.ArgumentNullException(nameof(translator));
 }
Example #7
0
        public static IGetRepository <T> BuildAndGetGetRepository <T>(Tech tech, IConfiguration configuration)
        {
            IGetRepository <T> getRepository = null;

            switch (tech)
            {
            case Tech.Mongodb:
                getRepository = new MongodbGetRepository <T>(GetMongoDatabase(configuration));
                break;
            }

            return(getRepository);
        }
Example #8
0
 public DashboardsController(IGetRepository <IApplicationUser> applicationUserRepository,
                             IAsyncQueryHandler <BagsCountByBagTypesQuery> bagTypesCountQuery,
                             IAsyncQueryHandler <BagsCountByBrandsQuery> brandsCountQuery,
                             IAsyncQueryHandler <BagsCountByInsertDateQuery> insertDateCountQuery,
                             IAsyncQueryHandler <TotalBagsCountByInsertDateQuery> totalInsertDateCountQuery,
                             ITranslator <IQueryResult, IActionResult> queryTranslator,
                             ITranslator <ICommandResult, IActionResult> commandTranslator)
 {
     ApplicationUserRepository = applicationUserRepository ?? throw new System.ArgumentNullException(nameof(applicationUserRepository));
     BagTypesCountQuery        = bagTypesCountQuery ?? throw new System.ArgumentNullException(nameof(bagTypesCountQuery));
     BrandsCountQuery          = brandsCountQuery ?? throw new System.ArgumentNullException(nameof(brandsCountQuery));
     InsertDateCountQuery      = insertDateCountQuery ?? throw new System.ArgumentNullException(nameof(insertDateCountQuery));
     TotalInsertDateCountQuery = totalInsertDateCountQuery ?? throw new System.ArgumentNullException(nameof(totalInsertDateCountQuery));
     QueryTranslator           = queryTranslator ?? throw new System.ArgumentNullException(nameof(queryTranslator));
     CommandTranslator         = commandTranslator ?? throw new System.ArgumentNullException(nameof(commandTranslator));
 }
Example #9
0
 protected GetController(IGetRepository <TEntity> entityRepository) : base(entityRepository)
 {
     _entityRepository = entityRepository;
 }
Example #10
0
 public TravelFeelingService()
 {
     this._reasonService = new TravelFeelingReasonService();
     this._repository    = RepositoryFactory.GetRepository <TravelFeeling>();
 }
Example #11
0
 public CotizacionLogic(IGetRepository <CotizacionRequestDTO, CotizacionResponseDTO> repository)
 {
     _cotizacionRequest = repository;
 }
Example #12
0
 public BagTypeToBagTypeTranslator(IGetRepository <IApplicationUser> repository)
 {
     Repository = repository;
 }
Example #13
0
 public ActivityAuthorizer(IGetRepository <IApplicationUser> repository)
 {
     Repository = repository ?? throw new System.ArgumentNullException(nameof(repository));
 }
Example #14
0
 public QueryHandler(IGetRepository <Customer> repository)
     : base(repository)
 {
 }
Example #15
0
 public BagsCountByInsertDateQueryHandler(IGetRepository <Dashboard <IEnumerable <CountBy <NodaTime.LocalDate> > > > repository)
 {
     Repository = repository;
 }
Example #16
0
 public TransportService()
 {
     this._repository    = RepositoryFactory.GetRepository <Transport>();
     this._branchService = new TransportBranchService();
 }
Example #17
0
 public SearchRefValuesQueryHandler(ISearchRepository <T> repository, IGetRepository <IApplicationUser> applicationUserRepository)
 {
     Repository = repository ?? throw new System.ArgumentNullException(nameof(repository));
     ApplicationUserRepository = applicationUserRepository ?? throw new System.ArgumentNullException(nameof(applicationUserRepository));
 }
Example #18
0
 public TransportBranchService()
 {
     this._repository = RepositoryFactory.GetRepository <TransportBranch>();
 }
Example #19
0
 public BoostUserService(IConfiguration configuration)
 {
     this._getRepository = RepositoryFactory.BuildAndGetGetRepository <BoostUser>(RepositoryFactory.Tech.Mongodb, configuration);
 }
 public RefValueToRefValueTranslator(IGetRepository <IApplicationUser> repository)
 {
     Repository = repository ?? throw new System.ArgumentNullException(nameof(repository));
 }
 public CotizacionController(IGetRepository <CotizacionRequestDTO, CotizacionResponseDTO> repository)
 {
     cotizacionLogic = new CotizacionLogic(repository);
 }
 public BagsCountByBagTypesQueryHandler(IGetRepository <Dashboard <IEnumerable <CountBy <RefValue> > > > repository)
 {
     Repository = repository;
 }
 public BoostRequestService(IConfiguration configuration)
 {
     this._getRepository  = RepositoryFactory.BuildAndGetGetRepository <BoostRequest>(RepositoryFactory.Tech.Mongodb, configuration);
     this._saveRepository = RepositoryFactory.BuildAndGetSaveRepository <BoostRequest>(RepositoryFactory.Tech.Mongodb, configuration);
 }
Example #24
0
 public TransportTypeService()
 {
     this._repository = RepositoryFactory.GetRepository <TransportType>();
 }
Example #25
0
 protected GetManager(IUnitOfWork unitOfWork, IGetRepository <TEntity, TKey> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Example #26
0
 public CountryToCountryViewModelTranslator(IGetRepository <IApplicationUser> repository)
 {
     Repository = repository ?? throw new System.ArgumentNullException(nameof(repository));
 }
Example #27
0
 public GetQueryHandler(IGetRepository <TEntity> repository, IAsyncTranslator <TEntity, TViewModel> translator)
 {
     Repository = repository ?? throw new System.ArgumentNullException(nameof(repository));
     Translator = translator ?? throw new System.ArgumentNullException(nameof(translator));
 }
Example #28
0
 public GetQuizService(IGetRepository <Quiz> repository)
 {
     _repository = repository;
 }
Example #29
0
 protected GetManager(IUnitOfWork unitOfWork, IGetRepository <TEntity, TKey> repository, IMapper mapper)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Example #30
0
 public TravelFeelingReasonService()
 {
     this._reasonRepository    = RepositoryFactory.GetRepository <TravelFeelingReason>();
     this._relationsRepository = RepositoryFactory.GetRepository <TravelFeelingReasonsPerFeelingAndTransportType>();
 }