Beispiel #1
0
        public static void Main()
        {
            var darkTheme  = new DarkTheme();
            var lightTheme = new LightTheme();

            var about   = new About(darkTheme);
            var careers = new Careers(lightTheme);

            Console.WriteLine(about.GetContent());
            Console.WriteLine(careers.GetContent());
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var darkTheme = new DarkTheme();
            var aquaTheme = new AquaTheme();

            var about   = new About(darkTheme);
            var careers = new Carrers(aquaTheme);

            Console.WriteLine(about.GetContent());
            Console.WriteLine(careers.GetContent());
        }