Esempio n. 1
0
        static void Main(string[] args)
        {
            var civilEngineer = new CivilEngineer(new TipiHouseBuilder());

            civilEngineer.ConstructHouse();
            Console.WriteLine(civilEngineer.GetHouse()._structure);
            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Igloo         igloo         = new Igloo();
            CivilEngineer civilEngineer = new CivilEngineer(igloo);

            civilEngineer.constructHouse();
            House house = new House();

            Console.WriteLine("Builder Constructed {0} ", house.GetHashCode());
        }