示例#1
0
        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);
        }
示例#2
0
 public IActionResult Index()
 {
     return(View(_itemDb.Get().Take(100)));
 }