Esempio n. 1
0
        static void Main()
        {
            var qualityTeam = new QualityTeamEmailGroup();
            qualityTeam.qualityTeamEmailGroup = new List<IEmail>();
            var test1 = new PersonalEmail("*****@*****.**");
            var test2 = new PersonalEmail("*****@*****.**");
            var test3 = new PersonalEmail("*****@*****.**");
            qualityTeam.qualityTeamEmailGroup.Add(test1);
            qualityTeam.qualityTeamEmailGroup.Add(test2);
            qualityTeam.qualityTeamEmailGroup.Add(test3);
            var ceo = new PersonalEmail("*****@*****.**");

            var emailsTobeSent=new QualityTeamEmailGroup();
            emailsTobeSent.qualityTeamEmailGroup.Add(qualityTeam);
            emailsTobeSent.qualityTeamEmailGroup.Add(ceo);

            emailsTobeSent.Send();

            Console.WriteLine("--------------------------------------");
        }
Esempio n. 2
0
        static void Main()
        {
            var qualityTeam = new QualityTeamEmailGroup();

            qualityTeam.qualityTeamEmailGroup = new List <IEmail>();
            var test1 = new PersonalEmail("*****@*****.**");
            var test2 = new PersonalEmail("*****@*****.**");
            var test3 = new PersonalEmail("*****@*****.**");

            qualityTeam.qualityTeamEmailGroup.Add(test1);
            qualityTeam.qualityTeamEmailGroup.Add(test2);
            qualityTeam.qualityTeamEmailGroup.Add(test3);
            var ceo = new PersonalEmail("*****@*****.**");

            var emailsTobeSent = new QualityTeamEmailGroup();

            emailsTobeSent.qualityTeamEmailGroup.Add(qualityTeam);
            emailsTobeSent.qualityTeamEmailGroup.Add(ceo);

            emailsTobeSent.Send();


            Console.WriteLine("--------------------------------------");
        }