public async Task Should_replace_app_ids_on_rebuild()
        {
            var state = HashSet.Of(appId1, appId2);

            await sut.RebuildAsync(state);

            var result = await sut.GetAppIdsAsync();

            Assert.Equal(new List <Guid> {
                appId1, appId2
            }, result);

            A.CallTo(() => persistence.WriteSnapshotAsync(A <AppsByUserIndexGrain.State> .Ignored))
            .MustHaveHappened();
        }
Beispiel #2
0
        public async Task Should_replace_app_ids_on_rebuild()
        {
            var state = HashSet.Of(appId1, appId2);

            await sut.RebuildAsync(state);

            var result = await sut.GetAppIdsAsync();

            Assert.Equal(new List <Guid> {
                appId1, appId2
            }, result);

            A.CallTo(() => grainState.WriteAsync())
            .MustHaveHappened();
        }