public ILane Build(LaneStyle style) { switch (style) { case LaneStyle.Classic: return(SelectLane("Classy", style)); case LaneStyle.WildWest: return(SelectLane("Cowboy", style)); case LaneStyle.Disco: default: return(SelectLane("Saturday night", style)); } }
protected internal override ILane SelectLane(string name, LaneStyle style) { return(new OakLane { PriceRange = LanePriceRange.AllStars, Name = name, LaneStyle = style }); }
protected internal override ILane SelectLane(string name, LaneStyle style) { return(new PineWoodLane { PriceRange = LanePriceRange.Beginners, Name = name, LaneStyle = style }); }
protected internal abstract ILane SelectLane(string name, LaneStyle style);