public async Task Should_repair_if_stale() { A.CallTo(() => persistence.IsSnapshotStale) .Returns(true); SetupCreated(1); await sut.EnsureLoadedAsync(); A.CallTo(() => persistence.WriteSnapshotAsync(A <MyDomainState> ._)) .MustHaveHappened(); }