public Rectangle( IRectangleAreaEquation areaEquation = null) { _areaEquation = areaEquation ?? new RectangleAreaEquation(); }
public Rectangle(double length, double height, IRectangleAreaEquation rectangleAreaEquation) { Length = length; Height = height; _rectangleAreaEquation = rectangleAreaEquation; }
public Square(double side, IRectangleAreaEquation rectangleAreaEquation) { SideSize = side; _rectangleAreaEquation = rectangleAreaEquation; }
public ShapesFactory(IRectangleAreaEquation rectangleAreaEquation, IEllipseAreaEquation ellipsAreaEquation) { _rectangleAreaEquation = rectangleAreaEquation; _ellipsAreaEquation = ellipsAreaEquation; }