public override IList <IDoor> CreateModernDoor(IDoorBlooprint blooprint, int amounth) { var door = ConvertBlooprintToDoor(blooprint); door.Design = "ModernVega"; return(CreateListOfDoors(door, amounth)); }
public override IList <IDoor> CreateClassicDoor(IDoorBlooprint blooprint, int amounth) { var door = ConvertBlooprintToDoor(blooprint); door.Design = "ClassicSeda"; return(CreateListOfDoors(door, amounth)); }
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); }
public abstract IList <IDoor> CreateModernDoor(IDoorBlooprint blooprint, int amounth);
public abstract IList <IDoor> CreateClassicDoor(IDoorBlooprint blooprint, int amounth);