Exemplo n.º 1
0
        private static void TouringBike()
        {
            AbstractRoadBike roadBike = new Touring(BikeColor.Gold, new NarrowWheel(12));
            BikeBuilder      builder  = new RoadBikeBuilder(roadBike);
            BikeDirector     director = new RoadBikeDirector();
            IBicycle         bicycle  = director.Build(builder);

            Console.WriteLine(bicycle);
        }
Exemplo n.º 2
0
        private static void VintageBike()
        {
            AbstractRoadBike vintageRoadBike = new Vintage(BikeColor.Ocean, new NarrowWheel(10));
            BikeBuilder      builder         = new RoadBikeBuilder(vintageRoadBike);
            BikeDirector     director        = new RoadBikeDirector();
            IBicycle         bicycle         = director.Build(builder);

            Console.WriteLine(bicycle);
        }