Example #1
0
        public RulesIndexTests()
        {
            A.CallTo(() => grainFactory.GetGrain <IRulesCacheGrain>(appId.Id.ToString(), null))
            .Returns(cache);

            sut = new RulesIndex(grainFactory);
        }
Example #2
0
        public RulesIndexTests()
        {
            A.CallTo(() => grainFactory.GetGrain <IRulesByAppIndexGrain>(appId.Id, null))
            .Returns(index);

            sut = new RulesIndex(grainFactory);
        }