コード例 #1
0
        public RulesByAppIndexGrainTests()
        {
            A.CallTo(() => grainState.ClearAsync())
            .Invokes(() => grainState.Value = new RulesByAppIndexGrain.GrainState());

            sut = new RulesByAppIndexGrain(grainState);
            sut.ActivateAsync(appId).Wait();
        }
コード例 #2
0
        public RulesByAppIndexGrainTests()
        {
            A.CallTo(() => store.WithSnapshots(A <Type> .Ignored, A <Guid> .Ignored, A <Func <RulesByAppIndexGrain.State, Task> > .Ignored))
            .Returns(persistence);

            sut = new RulesByAppIndexGrain(store);
            sut.OnActivateAsync(Guid.NewGuid()).Wait();
        }
コード例 #3
0
        public RulesByAppIndexGrainTests()
        {
            A.CallTo(() => store.WithSnapshots(typeof(RulesByAppIndexGrain), appId, A <HandleSnapshot <RulesByAppIndexGrain.GrainState> > .Ignored))
            .Returns(persistence);

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