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

            sut = new SchemasByAppIndexGrain(grainState);
            sut.ActivateAsync(appId.Id).Wait();
        }
コード例 #2
0
        public SchemasByAppIndexGrainTests()
        {
            A.CallTo(() => store.WithSnapshots(typeof(SchemasByAppIndexGrain), appId, A <HandleSnapshot <SchemasByAppIndexGrain.GrainState> > .Ignored))
            .Returns(persistence);

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