public void GetAllPeople_CountIncreasesAfterAddingPerson() { var repo = new AgeRangerRepository.Repo(); int beforeCount = repo.GetAllPeople().Count; var testPerson = new AgeRangerEntities.Person { First = "test_first", Last = "test_last", Age = 23 }; repo.AddPerson(testPerson); int afterCount = repo.GetAllPeople().Count; Assert.AreEqual(beforeCount, afterCount - 1); }
public void GetAllPeople() { var repo = new AgeRangerRepository.Repo(); System.Collections.Generic.List <AgeRangerEntities.Person> persons = repo.GetAllPeople(); Assert.IsNotNull(persons); Assert.AreNotEqual(persons.Count, 0); }