Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }