Beispiel #1
0
        public void GetPersonByParthOfName_ReturnsListOfPersons_withExpectedLastName()
        {
            var lastName = RandomUtil.GetRandomString(15);

            CreatePerson(RandomUtil.GetRandomString(), lastName);

            var persons = PersonQueries.GetPersonsByParthOfName(Context, lastName.Substring(8));

            Assert.IsNotNull(persons);
            Assert.IsNotNull(persons.Where(p => p.LastName == lastName));
        }