public void DeleteItem_ShouldPass() { using var context = new MarketDbContext(inMemoryConnection); SetUpInvetoryWithOneItem(context); ReadOnlyCollection <Item> items = storeInventory.GetStoreItems(); Assert.AreEqual(1, items.Count); Assert.DoesNotThrow(() => storeInventory.DeleteItem(items[0].Id, context)); Assert.AreEqual(0, storeInventory.GetStoreItems().Count); }