public void AddCategoryItem_ShouldPass() { using var context = new MarketDbContext(inMemoryConnection); Item item = SetUpInvetoryWithOneItem(context); Assert.IsTrue(storeInventory.AddCategoryItem(item.Id, "cat2", context)); Assert.AreEqual(2, item.Categories.Count); Assert.IsTrue(item.Categories.Contains(new Category("cat2"))); }