コード例 #1
0
 public CommonEntityStageManager(UserConnection userConnection,
                                 IGetRepository <CommonStageData> entityStageRepository,
                                 ICommonEntityInStageRepository <EntityInHistoricalStage> entityInStageRepository,
                                 StageHistorySetting stageHistorySetting)
     : base(userConnection, entityStageRepository, entityInStageRepository, stageHistorySetting)
 {
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public ProductController(IGetRepository <Category> categoryRepostiroy,
                          IRepository <Product> genericProductRepostiroy,
                          IProductRepository productRepository,
                          ICategoryRepository categoryRepository)
 {
     _genericCategoryRepostiroy = categoryRepostiroy;
     _genericProductRepostiroy  = genericProductRepostiroy;
     _productRepository         = productRepository;
     _categoryRepository        = categoryRepository;
 }
コード例 #4
0
        public TravelReviewService()
        {
            IRepository <TravelReview> repository = RepositoryFactory.GetRepository <TravelReview>();

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

            this._transportService     = new TransportService();
            this._travelFeelingService = new TravelFeelingService();
        }
コード例 #5
0
 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));
 }
コード例 #6
0
 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));
 }
コード例 #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);
        }
コード例 #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));
 }
コード例 #9
0
 protected GetController(IGetRepository <TEntity> entityRepository) : base(entityRepository)
 {
     _entityRepository = entityRepository;
 }
コード例 #10
0
 public TravelFeelingService()
 {
     this._reasonService = new TravelFeelingReasonService();
     this._repository    = RepositoryFactory.GetRepository <TravelFeeling>();
 }
コード例 #11
0
 public CotizacionLogic(IGetRepository <CotizacionRequestDTO, CotizacionResponseDTO> repository)
 {
     _cotizacionRequest = repository;
 }
コード例 #12
0
 public BagTypeToBagTypeTranslator(IGetRepository <IApplicationUser> repository)
 {
     Repository = repository;
 }
コード例 #13
0
 public ActivityAuthorizer(IGetRepository <IApplicationUser> repository)
 {
     Repository = repository ?? throw new System.ArgumentNullException(nameof(repository));
 }
コード例 #14
0
 public QueryHandler(IGetRepository <Customer> repository)
     : base(repository)
 {
 }
コード例 #15
0
 public BagsCountByInsertDateQueryHandler(IGetRepository <Dashboard <IEnumerable <CountBy <NodaTime.LocalDate> > > > repository)
 {
     Repository = repository;
 }
コード例 #16
0
 public TransportService()
 {
     this._repository    = RepositoryFactory.GetRepository <Transport>();
     this._branchService = new TransportBranchService();
 }
コード例 #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));
 }
コード例 #18
0
 public TransportBranchService()
 {
     this._repository = RepositoryFactory.GetRepository <TransportBranch>();
 }
コード例 #19
0
 public BoostUserService(IConfiguration configuration)
 {
     this._getRepository = RepositoryFactory.BuildAndGetGetRepository <BoostUser>(RepositoryFactory.Tech.Mongodb, configuration);
 }
コード例 #20
0
 public RefValueToRefValueTranslator(IGetRepository <IApplicationUser> repository)
 {
     Repository = repository ?? throw new System.ArgumentNullException(nameof(repository));
 }
コード例 #21
0
 public CotizacionController(IGetRepository <CotizacionRequestDTO, CotizacionResponseDTO> repository)
 {
     cotizacionLogic = new CotizacionLogic(repository);
 }
コード例 #22
0
 public BagsCountByBagTypesQueryHandler(IGetRepository <Dashboard <IEnumerable <CountBy <RefValue> > > > repository)
 {
     Repository = repository;
 }
コード例 #23
0
 public BoostRequestService(IConfiguration configuration)
 {
     this._getRepository  = RepositoryFactory.BuildAndGetGetRepository <BoostRequest>(RepositoryFactory.Tech.Mongodb, configuration);
     this._saveRepository = RepositoryFactory.BuildAndGetSaveRepository <BoostRequest>(RepositoryFactory.Tech.Mongodb, configuration);
 }
コード例 #24
0
 public TransportTypeService()
 {
     this._repository = RepositoryFactory.GetRepository <TransportType>();
 }
コード例 #25
0
 protected GetManager(IUnitOfWork unitOfWork, IGetRepository <TEntity, TKey> repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
コード例 #26
0
 public CountryToCountryViewModelTranslator(IGetRepository <IApplicationUser> repository)
 {
     Repository = repository ?? throw new System.ArgumentNullException(nameof(repository));
 }
コード例 #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));
 }
コード例 #28
0
 public GetQuizService(IGetRepository <Quiz> repository)
 {
     _repository = repository;
 }
コード例 #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));
 }
コード例 #30
0
 public TravelFeelingReasonService()
 {
     this._reasonRepository    = RepositoryFactory.GetRepository <TravelFeelingReason>();
     this._relationsRepository = RepositoryFactory.GetRepository <TravelFeelingReasonsPerFeelingAndTransportType>();
 }