示例#1
0
        public void AddKeyWordItem_ShouldPass()
        {
            using var context = new MarketDbContext(inMemoryConnection);

            Item item = SetUpInvetoryWithOneItem(context);

            Assert.IsTrue(storeInventory.AddKeyWordItem(item.Id, "word", context));

            Assert.IsTrue(item.Keywords.Contains(new Keyword("word")));
            Assert.AreEqual(1, item.Keywords.Count);
        }