public void Should_Send_Email_To_People_And_Groups()
        {
            var rafael = new Person()
            {
                Name = "Rafael",
                Email = "*****@*****.**"
            };
            var priscilla = new Person()
            {
                Name = "Priscilla",
                Email = "*****@*****.**"
            };
            var lorena = new Person()
            {
                Name = "Lorena",
                Email = "*****@*****.**"
            };
            var erick = new Person()
            {
                Name = "Erick",
                Email = "*****@*****.**"
            };
            var romulo = new Person()
            {
                Name = "Romulo",
                Email = "*****@*****.**"
            };
            var ricardo = new Person()
            {
                Name = "Ricardo",
                Email = "*****@*****.**"
            };
            var devs = new Group { Members = { romulo, rafael, ricardo }, Name = "Developers" };
            var people = new Group { Members = { lorena, priscilla, erick }, Name = "People" };
            var everybody = new Group { Members = { people, devs }, Name = "Everybody"};
            var sendEmail = new SendEmailService();
            var listEmails = new List<string>
                {
                    lorena.Email,
                    priscilla.Email,
                    erick.Email,
                    romulo.Email,
                    rafael.Email,
                    ricardo.Email
                };

            everybody.SendEmail();

            //everybody.SendEmail();

            CollectionAssert.AreEqual(PersonStaticClass.Emails, listEmails);

        }
        public void Should_Send_Email_To_Person()
        {
            var person = new Person()
                {
                    Name = "Rafael",
                    Email = "*****@*****.**"
                };

            var sendEmail = new SendEmailService();

            sendEmail.Send(person);

            Assert.AreEqual(PersonStaticClass.PersonStatic.Email, person.Email);
        }
        public void Should_Send_Email_To_People()
        {
            var rafael = new Person()
            {
                Name = "Rafael",
                Email = "*****@*****.**"
            };
            var priscilla = new Person()
            {
                Name = "Priscilla",
                Email = "*****@*****.**"
            };
            var lorena = new Person()
            {
                Name = "Lorena",
                Email = "*****@*****.**"
            };
            var people = new List<Person> {rafael, lorena, priscilla};
            var sendEmail = new SendEmailService();

            sendEmail.Send(people);

            CollectionAssert.AreEqual(PersonStaticClass.PeopleStatic, people);
        }
 public void Send(Person person)
 {
     PersonStaticClass.PersonStatic = person;
 }