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