public void TestGetItemDb() { List <Item> baseItemList = new List <Item>() { _item1, _item2, _item3, _item4, _item5 }; List <Item> items = _testItemDb.Get(); Assert.True(AreEqualLists(items, baseItemList)); Assert.Equal(5, items.Count); }
public IActionResult Index() { return(View(_itemDb.Get().Take(100))); }