Example #1
0
        public void IsItemAmountAvailableForPurchase_Yes_ShouldPass()
        {
            using var context = new MarketDbContext(inMemoryConnection);

            Item item = storeInventory.AddItem("newItem", 10, categories1, 3.55, context: context);

            Assert.DoesNotThrow(() => storeInventory.IsItemAmountAvailableForPurchase(item.Id, 4));
        }