Exemple #1
0
        public AssetQueryParserTests()
        {
            requestContext = new Context(Mocks.FrontendUser(), Mocks.App(appId));

            var options = Options.Create(new AssetOptions {
                DefaultPageSize = 30
            });

            sut = new AssetQueryParser(JsonHelper.DefaultSerializer, tagService, options);
        }
        public AssetQueryService(
            IAssetEnricher assetEnricher,
            IAssetRepository assetRepository,
            AssetQueryParser queryParser)
        {
            Guard.NotNull(assetEnricher, nameof(assetEnricher));
            Guard.NotNull(assetRepository, nameof(assetRepository));
            Guard.NotNull(queryParser, nameof(queryParser));

            this.assetEnricher   = assetEnricher;
            this.assetRepository = assetRepository;
            this.queryParser     = queryParser;
        }
Exemple #3
0
 public AssetQueryService(
     IAssetEnricher assetEnricher,
     IAssetRepository assetRepository,
     IAssetLoader assetLoader,
     IAssetFolderRepository assetFolderRepository,
     IOptions <AssetOptions> options,
     AssetQueryParser queryParser)
 {
     this.assetEnricher         = assetEnricher;
     this.assetRepository       = assetRepository;
     this.assetLoader           = assetLoader;
     this.assetFolderRepository = assetFolderRepository;
     this.options     = options.Value;
     this.queryParser = queryParser;
 }