Guest User

Untitled

a guest
Dec 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. (...)
  2.  
  3. Console.ForegroundColor = ConsoleColor.Green;
  4. Console.WriteLine("");
  5. Console.WriteLine(":: ALL VALID ::");
  6.  
  7. ISpecification<Person> validSpecification = new PersonValidSpecification<Person>();
  8.  
  9. var validPeople = people.Where(x => validSpecification.IsSatisfiedBy(x));
  10.  
  11. foreach (var item in validPeople)
  12. {
  13. Console.WriteLine(item.PersonId + " | " + item.Name + " | " + item.Email.Address + " | " + item.Category?.Description);
  14. }
  15.  
  16. (...)
Add Comment
Please, Sign In to add comment