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(); }