public async Task Should_add_app_id_to_index() { await sut.AddAppAsync(appId1); await sut.AddAppAsync(appId2); var result = await sut.GetAppIdsAsync(); Assert.Equal(new List <Guid> { appId1, appId2 }, result); A.CallTo(() => persistence.WriteSnapshotAsync(A <AppsByUserIndexGrain.State> .Ignored)) .MustHaveHappenedTwiceExactly(); }
public async Task Should_add_app_id_to_index() { await sut.AddAppAsync(appId1); await sut.AddAppAsync(appId2); var result = await sut.GetAppIdsAsync(); Assert.Equal(new List <Guid> { appId1, appId2 }, result); A.CallTo(() => grainState.WriteAsync()) .MustHaveHappenedTwiceExactly(); }