Exemplo n.º 1
0
        public void GetItemByName_ShouldPass()
        {
            using var context = new MarketDbContext(inMemoryConnection);

            Item item1 = storeInventory.AddItem("item1", 2, categories1, 3.55, context: context);
            Item item2 = storeInventory.AddItem("item2", 444, categories1, 30, context: context);

            Assert.AreSame(item1, storeInventory.GetItemByName("item1"));
        }