public WebApiClient( IRefitService <T> refitService, IGraphQLService graphQLService) { _refitService = refitService; _graphQLService = graphQLService; }
public GraphQLTestBase() { schemaDef = new Schema("my-schema") .AddJson(1, "my-json", Partitioning.Invariant, new JsonFieldProperties()) .AddString(2, "my-string", Partitioning.Language, new StringFieldProperties()) .AddNumber(3, "my-number", Partitioning.Invariant, new NumberFieldProperties()) .AddNumber(4, "my_number", Partitioning.Invariant, new NumberFieldProperties()) .AddAssets(5, "my-assets", Partitioning.Invariant, new AssetsFieldProperties()) .AddBoolean(6, "my-boolean", Partitioning.Invariant, new BooleanFieldProperties()) .AddDateTime(7, "my-datetime", Partitioning.Invariant, new DateTimeFieldProperties()) .AddReferences(8, "my-references", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = schemaId }) .AddReferences(9, "my-invalid", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = Guid.NewGuid() }) .AddGeolocation(10, "my-geolocation", Partitioning.Invariant, new GeolocationFieldProperties()) .AddTags(11, "my-tags", Partitioning.Invariant, new TagsFieldProperties()) .AddString(12, "my-localized", Partitioning.Language, new StringFieldProperties()) .AddArray(13, "my-array", Partitioning.Invariant, f => f .AddBoolean(121, "nested-boolean") .AddNumber(122, "nested-number") .AddNumber(123, "nested_number")) .ConfigureScripts(new SchemaScripts { Query = "<query-script>" }) .Publish(); A.CallTo(() => app.Id).Returns(appId); A.CallTo(() => app.Name).Returns(appName); A.CallTo(() => app.LanguagesConfig).Returns(LanguagesConfig.Build(Language.DE, Language.GermanGermany)); context = QueryContext.Create(app, user); A.CallTo(() => schema.Id).Returns(schemaId); A.CallTo(() => schema.SchemaDef).Returns(schemaDef); var allSchemas = new List <ISchemaEntity> { schema }; A.CallTo(() => appProvider.GetSchemasAsync(appId)).Returns(allSchemas); sut = new CachingGraphQLService(cache, appProvider, assetQuery, contentQuery, new FakeUrlGenerator()); }
public ExtraStore( IMemoryCache cache, IExtraService service, IGraphQLService graphQLService) : base(cache, service, graphQLService) { Key = Cache.Extras; Query = Queries.Extras.Item2; Method = Queries.Extras.Item1; }
public SlipwayStore( IMemoryCache cache, ISlipwayService service, IGraphQLService graphQLService) : base(cache, service, graphQLService) { Key = Cache.Slipways; Method = Queries.Slipways.Item1; Query = Queries.Slipways.Item2; }
public DataStore( IMemoryCache cache, ITokenService <DTO> service, IGraphQLService graphQLService) { _cache = cache; _service = service; _graphQLService = graphQLService; }
public ContentsController(ICommandBus commandBus, IContentQueryService contentQuery, IGraphQLService graphQl) : base(commandBus) { this.contentQuery = contentQuery; this.graphQl = graphQl; }
public SearchService( IGraphQLService graphQlService, ICachingService cachingService, ISearchResultCollection searchResultCollection) { _graphQLService = graphQlService; _cachingService = cachingService; _searchResultCollection = searchResultCollection; }
public PortStore( IMemoryCache cache, IPortService service, IGraphQLService graphQLService) : base(cache, service, graphQLService) { Key = Cache.Ports; Method = Queries.Ports.Item1; Query = Queries.Ports.Item2; }
public WaterStore( IMemoryCache cache, IWaterService service, IGraphQLService graphQLService) : base(cache, service, graphQLService) { Key = Cache.Waters; Method = Queries.Waters.Item1; Query = Queries.Waters.Item2; }
public ServiceStore( IMemoryCache cache, IServiceService service, IGraphQLService graphQLService, ILogger <ServiceStore> logger) : base(cache, service, graphQLService) { Key = Cache.Services; Query = Queries.Services.Item2; Method = Queries.Services.Item1; }
public ClassificationPanelViewModelFactory(IGraphQLService graphQLService, ILocalDBService localDBService) { if (graphQLService == null || localDBService == null) { throw new ArgumentNullException("RepoDependency"); } _localDBService = localDBService; _graphQLService = graphQLService; }
public UpdateService( IEventAggregator eventAggregator, IRepositoryWrapper repositoryWrapper, IGraphQLService graphQLService) { eventAggregator.GetEvent <InitializationReadyEvent>().Subscribe(Update); _eventAggregator = eventAggregator; _repositoryWrapper = repositoryWrapper; _graphQLService = graphQLService; }
public ManufacturerStore( IMemoryCache cache, IManufacturerService service, IGraphQLService graphQLService, ILogger <ManufacturerStore> logger) : base(cache, service, graphQLService) { _logger = logger; Key = Cache.Manufacturers; Method = Queries.Manufacturers.Item1; Query = Queries.Manufacturers.Item2; }
public ContentsController( ICommandBus commandBus, ISchemaProvider schemas, IContentRepository contentRepository, IGraphQLService graphQL) : base(commandBus) { this.graphQL = graphQL; this.schemas = schemas; this.contentRepository = contentRepository; }
public ContentsController(ICommandBus commandBus, IContentQueryService contentQuery, IGraphQLService graphQl, IOptions <ContentsControllerOptions> controllerOptions) : base(commandBus) { this.contentQuery = contentQuery; this.controllerOptions = controllerOptions; this.graphQl = graphQl; }
public GraphQLTests() { schemaDef.AddField(new JsonField(1, "my-json", Partitioning.Invariant, new JsonFieldProperties())); schemaDef.AddField(new StringField(2, "my-string", Partitioning.Language, new StringFieldProperties())); schemaDef.AddField(new NumberField(3, "my-number", Partitioning.Invariant, new NumberFieldProperties())); schemaDef.AddField(new AssetsField(4, "my-assets", Partitioning.Invariant, new AssetsFieldProperties())); schemaDef.AddField(new BooleanField(5, "my-boolean", Partitioning.Invariant, new BooleanFieldProperties())); schemaDef.AddField(new DateTimeField(6, "my-datetime", Partitioning.Invariant, new DateTimeFieldProperties())); schemaDef.AddField(new ReferencesField(7, "my-references", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = schemaId })); schemaDef.AddField(new ReferencesField(9, "my-invalid", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = Guid.NewGuid() })); schemaDef.AddField(new GeolocationField(10, "my-geolocation", Partitioning.Invariant, new GeolocationFieldProperties())); schemaDef.AddField(new TagsField(11, "my-tags", Partitioning.Invariant, new TagsFieldProperties())); A.CallTo(() => app.Id).Returns(appId); A.CallTo(() => app.PartitionResolver).Returns(x => InvariantPartitioning.Instance); A.CallTo(() => schema.Id).Returns(schemaId); A.CallTo(() => schema.Name).Returns(schemaDef.Name); A.CallTo(() => schema.SchemaDef).Returns(schemaDef); A.CallTo(() => schema.IsPublished).Returns(true); A.CallTo(() => schema.ScriptQuery).Returns("<script-query>"); var allSchemas = new List <ISchemaEntity> { schema }; A.CallTo(() => schemaRepository.QueryAllAsync(appId)).Returns(allSchemas); sut = new CachingGraphQLService(cache, assetRepository, contentQuery, new FakeUrlGenerator(), schemaRepository); }
public GraphQLTestBase() { var schemaDef = new Schema("my-schema") .AddJson(1, "my-json", Partitioning.Invariant, new JsonFieldProperties()) .AddString(2, "my-string", Partitioning.Language, new StringFieldProperties()) .AddNumber(3, "my-number", Partitioning.Invariant, new NumberFieldProperties()) .AddNumber(4, "my_number", Partitioning.Invariant, new NumberFieldProperties()) .AddAssets(5, "my-assets", Partitioning.Invariant, new AssetsFieldProperties()) .AddBoolean(6, "my-boolean", Partitioning.Invariant, new BooleanFieldProperties()) .AddDateTime(7, "my-datetime", Partitioning.Invariant, new DateTimeFieldProperties()) .AddReferences(8, "my-references", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = schemaId }) .AddReferences(9, "my-invalid", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = Guid.NewGuid() }) .AddGeolocation(10, "my-geolocation", Partitioning.Invariant, new GeolocationFieldProperties()) .AddTags(11, "my-tags", Partitioning.Invariant, new TagsFieldProperties()) .AddString(12, "my-localized", Partitioning.Language, new StringFieldProperties()) .AddArray(13, "my-array", Partitioning.Invariant, f => f .AddBoolean(121, "nested-boolean") .AddNumber(122, "nested-number") .AddNumber(123, "nested_number")) .ConfigureScripts(new SchemaScripts { Query = "<query-script>" }) .Publish(); A.CallTo(() => app.Id).Returns(appId); A.CallTo(() => app.Name).Returns(appName); A.CallTo(() => app.LanguagesConfig).Returns(LanguagesConfig.Build(Language.DE, Language.GermanGermany)); context = new Context(user, app); A.CallTo(() => schema.Id).Returns(schemaId); A.CallTo(() => schema.SchemaDef).Returns(schemaDef); sut = CreateSut(); }
public ContentsController(ICommandBus commandBus, IContentQueryService contentQuery, IContentWorkflow contentWorkflow, IGraphQLService graphQl, IOptions <MyContentsControllerOptions> controllerOptions) : base(commandBus) { this.contentQuery = contentQuery; this.contentWorkflow = contentWorkflow; this.controllerOptions = controllerOptions.Value; this.graphQl = graphQl; }
public GraphQLTestBase() { app = Mocks.App(appId, Language.DE, Language.GermanGermany); var schemaDef = new Schema("my-schema") .AddJson(1, "my-json", Partitioning.Invariant, new JsonFieldProperties()) .AddString(2, "my-string", Partitioning.Language, new StringFieldProperties()) .AddNumber(3, "my-number", Partitioning.Invariant, new NumberFieldProperties()) .AddNumber(4, "my_number", Partitioning.Invariant, new NumberFieldProperties()) .AddAssets(5, "my-assets", Partitioning.Invariant, new AssetsFieldProperties()) .AddBoolean(6, "my-boolean", Partitioning.Invariant, new BooleanFieldProperties()) .AddDateTime(7, "my-datetime", Partitioning.Invariant, new DateTimeFieldProperties()) .AddReferences(8, "my-references", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = schemaId.Id }) .AddReferences(9, "my-invalid", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = Guid.NewGuid() }) .AddGeolocation(10, "my-geolocation", Partitioning.Invariant, new GeolocationFieldProperties()) .AddTags(11, "my-tags", Partitioning.Invariant, new TagsFieldProperties()) .AddString(12, "my-localized", Partitioning.Language, new StringFieldProperties()) .AddArray(13, "my-array", Partitioning.Invariant, f => f .AddBoolean(121, "nested-boolean") .AddNumber(122, "nested-number") .AddNumber(123, "nested_number")) .ConfigureScripts(new SchemaScripts { Query = "<query-script>" }) .Publish(); schema = Mocks.Schema(appId, schemaId, schemaDef); requestContext = new Context(Mocks.FrontendUser(), app); sut = CreateSut(); }
public GraphQLTestBase() { schemaDef = new Schema("my-schema") .AddJson(1, "my-json", Partitioning.Invariant, new JsonFieldProperties()) .AddString(2, "my-string", Partitioning.Language, new StringFieldProperties()) .AddNumber(3, "my-number", Partitioning.Invariant, new NumberFieldProperties()) .AddAssets(4, "my-assets", Partitioning.Invariant, new AssetsFieldProperties()) .AddBoolean(5, "my-boolean", Partitioning.Invariant, new BooleanFieldProperties()) .AddDateTime(6, "my-datetime", Partitioning.Invariant, new DateTimeFieldProperties()) .AddReferences(7, "my-references", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = schemaId }) .AddReferences(9, "my-invalid", Partitioning.Invariant, new ReferencesFieldProperties { SchemaId = Guid.NewGuid() }) .AddGeolocation(10, "my-geolocation", Partitioning.Invariant, new GeolocationFieldProperties()) .AddTags(11, "my-tags", Partitioning.Invariant, new TagsFieldProperties()); A.CallTo(() => app.Id).Returns(appId); A.CallTo(() => app.Name).Returns(appName); A.CallTo(() => app.LanguagesConfig).Returns(LanguagesConfig.Build(Language.DE)); context = QueryContext.Create(app, user); A.CallTo(() => schema.Id).Returns(schemaId); A.CallTo(() => schema.Name).Returns(schemaDef.Name); A.CallTo(() => schema.SchemaDef).Returns(schemaDef); A.CallTo(() => schema.IsPublished).Returns(true); A.CallTo(() => schema.ScriptQuery).Returns("<script-query>"); var allSchemas = new List <ISchemaEntity> { schema }; A.CallTo(() => appProvider.GetSchemasAsync(appId)).Returns(allSchemas); sut = new CachingGraphQLService(cache, appProvider, assetRepository, commandBus, contentQuery, new FakeUrlGenerator()); }
public GraphQLTests() { A.CallTo(() => appEntity.Id).Returns(appId); A.CallTo(() => appEntity.PartitionResolver).Returns(x => InvariantPartitioning.Instance); A.CallTo(() => schemaEntity.Id).Returns(schemaId); A.CallTo(() => schemaEntity.Name).Returns(schema.Name); A.CallTo(() => schemaEntity.Schema).Returns(schema); A.CallTo(() => schemaEntity.IsPublished).Returns(true); var schemas = new List <ISchemaEntity> { schemaEntity }; A.CallTo(() => schemaRepository.QueryAllAsync(appId)).Returns(Task.FromResult <IReadOnlyList <ISchemaEntity> >(schemas)); sut = new CachingGraphQLService(cache, schemaRepository, assetRepository, contentRepository, new FakeUrlGenerator()); }
public GraphQLTests() { A.CallTo(() => app.Id).Returns(appId); A.CallTo(() => app.PartitionResolver).Returns(x => InvariantPartitioning.Instance); A.CallTo(() => schema.Id).Returns(schemaId); A.CallTo(() => schema.Name).Returns(schemaDef.Name); A.CallTo(() => schema.SchemaDef).Returns(schemaDef); A.CallTo(() => schema.IsPublished).Returns(true); A.CallTo(() => schema.ScriptQuery).Returns("<script-query>"); var allSchemas = new List <ISchemaEntity> { schema }; A.CallTo(() => schemaRepository.QueryAllAsync(appId)).Returns(allSchemas); sut = new CachingGraphQLService(cache, assetRepository, contentQuery, new FakeUrlGenerator(), schemaRepository); }
public UnitController(IGraphQLService service) { _service = service; }
public UserService(IGraphQLService graphQlService, ICachingService cachingService) { _graphQLService = graphQlService; _cachingService = cachingService; }
//! END Section: Globals //! Section: Methods /// <summary> /// Constructor of the controller that handles dependency injection of required services /// </summary> /// <param name="githubService">Service that allows interaction with the GitHub API v3</param> /// <param name="graphQLService">Service that allows interaction with the GitHub API v4</param> public GitHubController(IGitHubService githubService, IGraphQLService graphQLService) { // Populate the services using dependency injection _githubService = githubService; _graphQLService = graphQLService; }
public ClassificationController(IGraphQLService service) { _service = service; }
public DomainController(IGraphQLService service) { _service = service; }
public MainPage() { InitializeComponent(); _graphQLService = new GraphQLClientService(); }
public LocalDBService(IGraphQLService graphQLService) { _graphQLService = graphQLService; }
public ReferenceDocumentController(IGraphQLService service) { _service = service; }