Exemple #1
0
        public void Run()
        {
            //  House house = new House(){Doors = 1, HasSwimmingPool = true};
            // var builder = new HouseBuilder();
            var house = HouseBuilder.GetBuilder()
                        .Rooms(2)
                        .Doors(1)
                        .Windows(4)
                        .HasPool()
                        .Build();

            var bungalow = HouseBuilder.GetBuilder()
                           .CreateBungalow()
                           .HasPool()
                           .Build();
        }