public SchemasIndexTests() { A.CallTo(() => grainFactory.GetGrain <ISchemasByAppIndexGrain>(appId.Id, null)) .Returns(index); sut = new SchemasIndex(grainFactory); }
public SchemasIndexTests() { A.CallTo(() => grainFactory.GetGrain <ISchemasByAppIndexGrain>(appId.Id.ToString(), null)) .Returns(index); var cache = new ReplicatedCache(new MemoryCache(Options.Create(new MemoryCacheOptions())), new SimplePubSub()); sut = new SchemasIndex(grainFactory, cache); }
public SchemasIndexTests() { A.CallTo(() => grainFactory.GetGrain <ISchemasCacheGrain>(appId.Id.ToString(), null)) .Returns(this.cache); var localCache = new ReplicatedCache(new MemoryCache(Options.Create(new MemoryCacheOptions())), new SimplePubSub(A.Fake <ILogger <SimplePubSub> >()), Options.Create(new ReplicatedCacheOptions { Enable = true })); sut = new SchemasIndex(grainFactory, localCache); }