Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var car = new CarBuilderFacade()
                      .Info
                      .WithType("BMW")
                      .WithColor("Black")
                      .WithNumberOfDoors(5)
                      .Built
                      .InCity("Lepzig ")
                      .AtAdress("GlucklichStrasse  254")
                      .Build();

            Console.WriteLine(car.ToString());
        }
        // Facade is a Structural Design Pattern
        public static void Main(string[] args)
        {
            Car car = new CarBuilderFacade()
                      .Info
                      .WithType("Sedan")
                      .WithNumberOfDoors(4)
                      .WithColor("Blue")
                      .Built
                      .InCity("Kardzhali")
                      .AtAddress("Chakalarovo")
                      .Build();

            Console.WriteLine(car);
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            var car = new CarBuilderFacade()
                      .Info
                      .WithType("BMW")
                      .WithColor("Black")
                      .WithNumberOfDoors(3)
                      .Built
                      .WithCity("Bavaria")
                      .WithAddress("blvd.\"st.Jones 254\"")
                      .Build();

            Console.WriteLine(car);
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            var car = new CarBuilderFacade()
                      .Info
                      .WithType("BMW")
                      .WitColor("Black")
                      .WithNumberOfDoors(5)
                      .Built
                      .InCity("Leipzig ")
                      .AtAddress("Some address 254")
                      .Build();

            Console.WriteLine(car);
        }
Ejemplo n.º 5
0
        public static void Main()
        {
            var car = new CarBuilderFacade()
                      .Info
                      .WithType("BMW")
                      .WithColor("grey")
                      .WithNumberOfDoors(4)
                      .Built
                      .InCity("Malibu")
                      .AtAddress("Happy House 333")
                      .Build();

            Console.WriteLine(car);
        }
Ejemplo n.º 6
0
        public static void Main(string[] args)
        {
            var car = new CarBuilderFacade()
                      .Info
                      .WithType("Audi")
                      .WithColor("Black")
                      .WithNumberOfDoors(5)
                      .Built
                      .InCity("Sofia")
                      .AtAddress("3")
                      .Build();

            Console.WriteLine(car);
        }
Ejemplo n.º 7
0
        public static void Main(string[] args)
        {
            var car = new CarBuilderFacade()
                      .Info
                      .WithType("BMW")
                      .WithColor("blue")
                      .WithNumberOfDoors(4)
                      .Address
                      .WithCity("Sofia")
                      .WithAddress("Ivan Vazov 15")
                      .Build();

            Console.WriteLine(car);
        }
Ejemplo n.º 8
0
        static void Main(string[] args)
        {
            var car = new CarBuilderFacade()
                      .Info
                      .WithType("Opel")
                      .WithColor("Orange")
                      .WithNumberOfDoors(5)
                      .Built
                      .InCity("Munich ")
                      .AtAddress("GG 254")
                      .Build();

            Console.WriteLine(car);
        }