public void Should_Search_An_Entity() { var repository = new AuthorRepository(); repository.Insert(new Author() { FirstName = "Bruce", LastName = "Wayne" }); var authorToFind = repository.Insert(new Author() { FirstName = "Dick", LastName = "Grayson" }); var authorsFound = repository.SearchFor(author => author.FirstName == "Dick" && author.LastName == "Grayson"); Assert.AreEqual(1, authorsFound.Count()); Assert.AreEqual(authorToFind.Id, authorsFound.First().Id); }