public MailingBuilder AddSimpsons() { foreach (var person in The.Simpsons()) { personList.Add(person); } return(this); }
public bool ContainEmailsAllExcept(string email) { var emails = The.Simpsons().ConvertAll(x => x.Email); emails.Remove(email); var res = _messageList.ElementAt(elementNumber).SendTo; return(res.ToHashSet().SetEquals(emails.ToHashSet())); }