Example #1
0
        public override IList <IDoor> CreateModernDoor(IDoorBlooprint blooprint, int amounth)
        {
            var door = ConvertBlooprintToDoor(blooprint);

            door.Design = "ModernVega";
            return(CreateListOfDoors(door, amounth));
        }
Example #2
0
        public override IList <IDoor> CreateClassicDoor(IDoorBlooprint blooprint, int amounth)
        {
            var door = ConvertBlooprintToDoor(blooprint);

            door.Design = "ClassicSeda";
            return(CreateListOfDoors(door, amounth));
        }
Example #3
0
        protected IDoor ConvertBlooprintToDoor(IDoorBlooprint blooprint)
        {
            var door = FindModel();

            door.High     = blooprint.High != 0 ? blooprint.High : door.High;
            door.Width    = blooprint.Width != 0 ? blooprint.Width : door.Width;
            door.Depth    = blooprint.Depth != 0 ? blooprint.Depth : door.Depth;
            door.Color    = blooprint.Color.Length != 0 ? blooprint.Color : door.Color;
            door.Material = blooprint.Material.Length != 0 ? blooprint.Material : door.Material;
            return(door);
        }
Example #4
0
 public abstract IList <IDoor> CreateModernDoor(IDoorBlooprint blooprint, int amounth);
Example #5
0
 public abstract IList <IDoor> CreateClassicDoor(IDoorBlooprint blooprint, int amounth);