public void AddItem_ShouldPass() { using var context = new MarketDbContext(inMemoryConnection); Item result = storeInventory.AddItem("newItem", 2, categories1, 3.55, context: context, keywordNames: new HashSet <string>() { "word1" }); ReadOnlyCollection <Item> items = storeInventory.GetStoreItems(); Assert.IsNotNull(result); Assert.IsTrue(items.Contains(result)); Assert.AreEqual(1, items.Count); }