public void AddItemsTest() { var rep = new TestRepository(); var items = GetTestItems(); rep.AddRange(items); }
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); }