public TestFixture() { MemoryCacheProvider = new GraphQLCacheProvider <TestEntity>(); var serviceCollection = new ServiceCollection(); ServiceProvider = serviceCollection.BuildServiceProvider(); }
public TestService(TestFixture fixture) { this.fixture = fixture; this.memoryCacheProvider = fixture.MemoryCacheProvider; this.memoryCacheProvider.RegisterActions( getByIdFromList: GetByIdFromList, getFromDatabase: GetFromDatabase, getFromDatabaseById: GetFromDatabaseById); }