public static void Main()
        {
            var localCourse = new LocalCourse(
                "Databases",
                "Svetlin Nakov",
                "Enterprise");

            Console.WriteLine(localCourse);

            localCourse.AddStudents("Milena", "Todor");
            localCourse.AddStudents(new List<string>() { "Peter", "Maria" });

            Console.WriteLine(localCourse);

            var offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                "San Francisco",
                new List<string>() { "Thomas", "Ani", "Steve" });

            Console.WriteLine(offsiteCourse);

            offsiteCourse.AddStudents(new[] { "Jane", "Marry" });

            Console.WriteLine(offsiteCourse);
        }
Example #2
0
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "Pesho Peshev", "lab");

            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.Students = new List <string>()
            {
                "Peter", "Maria"
            };
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <string>()
            {
                "Thomas", "Ani", "Steve"
            },
                "Sofia");

            Console.WriteLine(offsiteCourse);
        }
Example #3
0
        internal static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases");

            Console.WriteLine(localCourse);

            localCourse.AddLab("Enterprise");
            Console.WriteLine(localCourse);

            localCourse.AddStudents(new List <string>()
            {
                "Peter", "Maria"
            });
            Console.WriteLine(localCourse);

            localCourse.AddTeacher("Svetlin Nakov");
            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development", "Mario Peshev");

            offsiteCourse.AddStudents(new List <string>()
            {
                "Thomas", "Ani", "Steve"
            });
            Console.WriteLine(offsiteCourse);
        }
        public static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "Toni Storaro", "Ultimate");

            Console.WriteLine(localCourse);

            localCourse.ChangeLab("Enterprise");
            Console.WriteLine(localCourse);

            localCourse.AddStudents(null);
            Console.WriteLine(localCourse);

            localCourse.ChangeTeacher("Svetlin Nakov");
            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <string>()
            {
                "Thomas", "Ani", "Steve"
            },
                "Karnobat");

            Console.WriteLine(offsiteCourse);
        }
        public static void Main()
        {
            var localCourse = new LocalCourse(
                "Databases",
                "Svetlin Nakov",
                "Enterprise");

            Console.WriteLine(localCourse);

            localCourse.AddStudents("Milena", "Todor");
            localCourse.AddStudents(new List <string>()
            {
                "Peter", "Maria"
            });

            Console.WriteLine(localCourse);

            var offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                "San Francisco",
                new List <string>()
            {
                "Thomas", "Ani", "Steve"
            });

            Console.WriteLine(offsiteCourse);

            offsiteCourse.AddStudents(new[] { "Jane", "Marry" });

            Console.WriteLine(offsiteCourse);
        }
        private static void Main()
        {
            var localCourse = new LocalCourse("Databases");

            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.AddStudents("Peter", "Maria");
            Console.WriteLine(localCourse);

            localCourse.Teacher = "Svetlin Nakov";
            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            var offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <string> {
                "Thomas", "Ani", "Steve"
            });

            Console.WriteLine(offsiteCourse);
        }
Example #7
0
        public static void Main()
        {
            ILocalCourse localCourse = new LocalCourse("Database", "Nakov", "Enterprise");

            Console.WriteLine(localCourse);

            IStudent peter = new Student("Peter", "Peshov");
            IStudent maria = new Student("Maria", "Marianova"); // Seems legit.

            localCourse.AddStudents(peter, maria);
            Console.WriteLine(localCourse);

            IStudent milena = new Student("Milena", "Milenova");
            IStudent todor  = new Student("Todor", "Petkov");

            localCourse.AddStudents(milena, todor);
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development",
                "Mario Peshev",
                new List <IStudent>()
            {
                new Student("Thomas", "Edinburg"),
                new Student("Ani", "Beleva"),
                new Student("Steve", "Petrov")
            },
                "Blagoevgrad");

            Console.WriteLine(offsiteCourse);
        }
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "Nakov", "Ultimate");
            Console.WriteLine(localCourse);

            localCourse.AddStudents("Peter", "Maria");
            Console.WriteLine(localCourse);

            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP Development", "Mario Peshev", "Enterprise");
            offsiteCourse.AddStudents("Thomas", "Ani", "Steve");
            Console.WriteLine(offsiteCourse);
        }
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "Nakov", "Ultimate");

            Console.WriteLine(localCourse);

            localCourse.AddStudents("Peter", "Maria");
            Console.WriteLine(localCourse);

            localCourse.AddStudents("Milena");
            localCourse.AddStudents("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP Development", "Mario Peshev", "Enterprise");

            offsiteCourse.AddStudents("Thomas", "Ani", "Steve");
            Console.WriteLine(offsiteCourse);
        }
Example #10
0
        private static void LocalCourseExample(IList <string> students)
        {
            var localCourseName        = "Databases";
            var localCourseTeacherName = "Svetlin Nakov";
            var localCourseLabName     = "Enterprise";

            var localCourse = new LocalCourse(localCourseName, localCourseTeacherName, localCourseLabName);

            localCourse.AddStudents(students);

            Console.WriteLine(localCourse);
        }
Example #11
0
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "Doncho", new List<string>() { "Pesho", "Gosho" }, "Enterprise");
            Console.WriteLine(localCourse);

            localCourse.Lab = "Enterprise";
            Console.WriteLine(localCourse);

            localCourse.AddStudents("Peter", "Maria");
            Console.WriteLine(localCourse);

            localCourse.TeacherName = "Svetlin Nakov";
            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development", "Mario Peshev",
                new List<string>() { "Thomas", "Ani", "Steve" },"Istanbul");
            Console.WriteLine(offsiteCourse);
        }
        static void Main()
        {
            LocalCourse localCourse = new LocalCourse("Databases", "SomeGuy");
            Console.WriteLine(localCourse);

            localCourse.AssignLab("Enterprise");
            Console.WriteLine(localCourse);

            localCourse.AddStudents(new List<string>() { "Peter", "Maria" });
            Console.WriteLine(localCourse);

            localCourse.AddStudent("Milena");
            localCourse.AddStudent("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse(
                "PHP and WordPress Development", "Mario Peshev",
                new List<string>() { "Thomas", "Ani", "Steve" });
            Console.WriteLine(offsiteCourse);
            Console.ReadKey();
        }