public GraphQlController( IGraphQlService graphQlService, IIdentityService identityService, ILogger <GraphQlController> logger) { _graphQlService = graphQlService; _identityService = identityService; _logger = logger; }
public GraphqlFileTests() { _host = ServerBuilder.CreateServer(new ServerBuilderOptions { ConfigureServices = (collection, options) => { collection.AddScoped <IUploadStorageProvider, InMemoryFileProvider>(); } }); var serviceProvider = _host.Services.CreateScope().ServiceProvider; var httpContextAccessor = serviceProvider.GetRequiredService <IHttpContextAccessor>(); _dbContext = serviceProvider.GetRequiredService <LactalisDBContext>(); _storageProvider = serviceProvider.GetRequiredService <IUploadStorageProvider>(); _crudService = serviceProvider.GetRequiredService <ICrudService>(); _graphqlService = serviceProvider.GetRequiredService <IGraphQlService>(); _identityService = serviceProvider.GetRequiredService <IIdentityService>(); _fileController = serviceProvider.GetRequiredService <FileController>(); _fileController.ControllerContext.HttpContext = httpContextAccessor.HttpContext; }
public JobApplicationApiController(IGraphQlService graphQlService) { _graphQlService = graphQlService; }
public GraphQlController(IGraphQlService graphQlService) { _graphQlService = graphQlService; }