public RulesByAppIndexGrainTests()
        {
            A.CallTo(() => grainState.ClearAsync())
            .Invokes(() => grainState.Value = new RulesByAppIndexGrain.GrainState());

            sut = new RulesByAppIndexGrain(grainState);
            sut.ActivateAsync(appId).Wait();
        }
        public RulesByAppIndexGrainTests()
        {
            A.CallTo(() => store.WithSnapshots(typeof(RulesByAppIndexGrain), appId, A <HandleSnapshot <RulesByAppIndexGrain.GrainState> > .Ignored))
            .Returns(persistence);

            sut = new RulesByAppIndexGrain(store);
            sut.ActivateAsync(appId).Wait();
        }