public void GetById() { // arrange var expected = DbHelper.Seed_SingleBlog(_context); var repository = new QueryRepository <Blog, int>(_context); // act var actual = repository.GetById(expected.Id); // assert Assert.Equal(expected, actual); }