Пример #1
0
 public void SearchNonExistItemPerson()
 {
     PersonSearchRepository repo = new PersonSearchRepository(new SearchEng.Data.AWEntities());
     var results = repo.Results("Murat").ToList();
     var count   = results.Count();
     // Assert.Same(0, count);
 }
Пример #2
0
        public void SearchWhiteSpacePerson()
        {
            PersonSearchRepository repo = new PersonSearchRepository(new SearchEng.Data.AWEntities());
            var results = repo.Results(" ").ToList();
            var count   = results.Count();

            Assert.Equal(0, count);
        }
Пример #3
0
 public PeopleSearchController(DbContext db)
 {
     repo = new PersonSearchRepository(db);
 }