Beispiel #1
0
        public MailingBuilder AddSimpsons()
        {
            foreach (var person in The.Simpsons())
            {
                personList.Add(person);
            }

            return(this);
        }
Beispiel #2
0
        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()));
        }