Ejemplo n.º 1
0
 public GraphQlController(
     IGraphQlService graphQlService,
     IIdentityService identityService,
     ILogger <GraphQlController> logger)
 {
     _graphQlService  = graphQlService;
     _identityService = identityService;
     _logger          = logger;
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public JobApplicationApiController(IGraphQlService graphQlService)
 {
     _graphQlService = graphQlService;
 }
Ejemplo n.º 4
0
 public GraphQlController(IGraphQlService graphQlService)
 {
     _graphQlService = graphQlService;
 }