public async Task Should_be_able_to_reserve_after_app_removed() { await sut.AddAppAsync(appId1, appName1); await sut.RemoveAppAsync(appId1); Assert.True(await sut.ReserveAppAsync(appId1, appName1)); }
public async Task Should_remove_app_id_from_index() { await sut.AddAppAsync(appId1, appName1); await sut.RemoveAppAsync(appId1); var result = await sut.GetAppIdAsync(appName1); Assert.Equal(Guid.Empty, result); A.CallTo(() => persistence.WriteSnapshotAsync(A <AppsByNameIndexGrain.State> .Ignored)) .MustHaveHappenedTwiceExactly(); }