public SchemasByAppIndexGrainTests() { A.CallTo(() => store.WithSnapshots(A <Type> .Ignored, A <Guid> .Ignored, A <Func <SchemasByAppIndexGrain.State, Task> > .Ignored)) .Returns(persistence); sut = new SchemasByAppIndexGrain(store); sut.OnActivateAsync(Guid.NewGuid()).Wait(); }
public SchemasByAppIndexGrainTests() { A.CallTo(() => grainState.ClearAsync()) .Invokes(() => grainState.Value = new SchemasByAppIndexGrain.GrainState()); sut = new SchemasByAppIndexGrain(grainState); sut.ActivateAsync(appId.Id).Wait(); }
public SchemasByAppIndexGrainTests() { A.CallTo(() => store.WithSnapshots(typeof(SchemasByAppIndexGrain), appId, A <HandleSnapshot <SchemasByAppIndexGrain.GrainState> > .Ignored)) .Returns(persistence); sut = new SchemasByAppIndexGrain(store); sut.ActivateAsync(appId).Wait(); }