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(); }
public CarGeneratorFacade(CreateCarSkeleton createCarSkeleton, CreateEngine createEngine) { this.createCarSkeleton = createCarSkeleton; this.createEngine = createEngine; }