Esempio n. 1
0
        static void Main()
        {
            CreateCarSkeleton createCarSkeleton = new CreateCarSkeleton()
            {
                Bottom = "Bottom component", Top = "Top component"
            };
            CreateEngine createEngine = new CreateEngine()
            {
                Oil_pump = "Oil pump", Roller = "Roller"
            };

            CarGeneratorFacade facade = new CarGeneratorFacade(createCarSkeleton, createEngine);

            Console.WriteLine(facade.Operation());

            Console.Read();
        }
Esempio n. 2
0
 public CarGeneratorFacade(CreateCarSkeleton createCarSkeleton, CreateEngine createEngine)
 {
     this.createCarSkeleton = createCarSkeleton;
     this.createEngine      = createEngine;
 }