public async Task Remove_Success() { IJsonRepository <Person, int> store = GetStore(_options); await store.RemoveAsync(1); await store.SaveChangesAsync(); IJsonRepository <Person, int> newStore = GetStore(_options); var items = await newStore.GetAllAsync(); Assert.Empty(items); }
public async Task Remove_NotExisting() { IJsonRepository <Person, int> store = GetStore(_options); await Assert.ThrowsAsync <ItemNotFoundException>(async() => await store.RemoveAsync(999)); }