public void TestTriangle(float firstSide, float secondSide, float thridSide) { var areaGetter = AreaScheduler.GetAreaGetter(FIguresDll.Interfases.AllFigures.Triangle); var triangleModel = CreateTriangle(firstSide, secondSide, thridSide); var area = areaGetter.GetArea(triangleModel); }
public void TestCircle(float radius) { var areaGetter = AreaScheduler.GetAreaGetter(FIguresDll.Interfases.AllFigures.Circle); var circleModel = GetCircle(radius); var area = areaGetter.GetArea(circleModel); }