public async Task Should_add_app_id_to_index() { await sut.AddAppAsync(appId1, appName1); var result = await sut.GetAppIdAsync(appName1); Assert.Equal(appId1, result); A.CallTo(() => persistence.WriteSnapshotAsync(A <AppsByNameIndexGrain.State> .Ignored)) .MustHaveHappened(); }
public async Task Should_add_app_id_to_index() { await sut.AddAppAsync(appId1.Id, appId1.Name); var result = await sut.GetAppIdAsync(appId1.Name); Assert.Equal(appId1.Id, result); A.CallTo(() => grainState.WriteAsync()) .MustHaveHappened(); }