Exemplo n.º 1
0
 public void AddRoom(Room room)
 {
     this.rooms.Add(room);
 }
        public IWithWindowSyntax AddRoom()
        {
            var newRoom = new Room();

            this.newestFloor.AddRoom(newRoom);

            this.newestRoom = newRoom;

            return this;
        }
        public IWithWindowSyntax WithRoom(Room room)
        {
            this.newestFloor.AddRoom(room);

            return this;
        }
        public IBuildHouseSyntax WithRoomHavingWindowsQuantityOf(int numberOfWindowsInRoom)
        {
            var newRoom = new Room();

            for (int i = 0; i < numberOfWindowsInRoom; i++)
            {
                newRoom.AddWindow(new Window());
            }

            this.newestFloor.AddRoom(newRoom);

            return this;
        }