예제 #1
0
        public void AddItemsTest()
        {
            var rep   = new TestRepository();
            var items = GetTestItems();

            rep.AddRange(items);
        }
예제 #2
0
        public void AddWhereTest()
        {
            IRepository <Test, int> rep = new TestRepository();
            var items = GetTestItems();

            rep.AddRange(items);
            var result = rep.Where(x => x.Name == "test3");

            Assert.Single(result);
            var record3 = result.First();

            Assert.Equal("test3", record3.Name);
        }