Exemplo n.º 1
0
        public SchemasIndexTests()
        {
            A.CallTo(() => grainFactory.GetGrain <ISchemasByAppIndexGrain>(appId.Id, null))
            .Returns(index);

            sut = new SchemasIndex(grainFactory);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }