public TagGrainTests() { A.CallTo(() => store.WithSnapshots(A <Type> .Ignored, A <string> .Ignored, A <Func <TagGrain.State, Task> > .Ignored)) .Returns(persistence); sut = new TagGrain(store); sut.OnActivateAsync(string.Empty).Wait(); }
public TagGrainTests() { A.CallTo(() => grainState.ClearAsync()) .Invokes(() => grainState.Value = new TagGrain.State()); sut = new TagGrain(grainState); sut.ActivateAsync(id).Wait(); }
public TagGrainTests() { A.CallTo(() => store.WithSnapshots(typeof(TagGrain), id, A <HandleSnapshot <TagGrain.GrainState> > .Ignored)) .Returns(persistence); sut = new TagGrain(store); sut.ActivateAsync(id).Wait(); }