Добавил тест для прямоугольника
This commit is contained in:
@@ -8,8 +8,8 @@ namespace StructureHelperLogics.Data.Shapes
|
||||
public class Center : ICenter
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public double CenterX { get; set; }
|
||||
public double X { get; set; }
|
||||
/// <inheritdoc />
|
||||
public double CenterY { get; set; }
|
||||
public double Y { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ namespace StructureHelperLogics.Data.Shapes
|
||||
/// Coordinate of center of rectangle by local axis X, m
|
||||
/// Координата центра вдоль локальной оси X, м
|
||||
/// </summary>
|
||||
double CenterX { get;}
|
||||
double X { get;}
|
||||
/// <summary>
|
||||
/// Coordinate of center of rectangle by local axis Y, m
|
||||
/// Координата центра вдоль локальной оси Y, м
|
||||
/// </summary>
|
||||
double CenterY { get;}
|
||||
double Y { get;}
|
||||
}
|
||||
}
|
||||
|
||||
12
StructureHelperLogics/Data/Shapes/ICenterShape.cs
Normal file
12
StructureHelperLogics/Data/Shapes/ICenterShape.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StructureHelperLogics.Data.Shapes
|
||||
{
|
||||
public interface ICenterShape
|
||||
{
|
||||
ICenter Center {get;}
|
||||
IShape Shape { get;}
|
||||
}
|
||||
}
|
||||
11
StructureHelperLogics/Data/Shapes/ICircle.cs
Normal file
11
StructureHelperLogics/Data/Shapes/ICircle.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StructureHelperLogics.Data.Shapes
|
||||
{
|
||||
public interface ICircle : IShape
|
||||
{
|
||||
double Diameter { get; set; }
|
||||
}
|
||||
}
|
||||
11
StructureHelperLogics/Data/Shapes/IPoint.cs
Normal file
11
StructureHelperLogics/Data/Shapes/IPoint.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StructureHelperLogics.Data.Shapes
|
||||
{
|
||||
public interface IPoint : IShape
|
||||
{
|
||||
double Area { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using System.Text;
|
||||
|
||||
namespace StructureHelperLogics.Data.Shapes
|
||||
{
|
||||
public interface IRectangle
|
||||
public interface IRectangle : IShape
|
||||
{
|
||||
/// <summary>
|
||||
/// Width of rectangle, m
|
||||
|
||||
10
StructureHelperLogics/Data/Shapes/IShape.cs
Normal file
10
StructureHelperLogics/Data/Shapes/IShape.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StructureHelperLogics.Data.Shapes
|
||||
{
|
||||
public interface IShape
|
||||
{
|
||||
}
|
||||
}
|
||||
11
StructureHelperLogics/Data/Shapes/Point.cs
Normal file
11
StructureHelperLogics/Data/Shapes/Point.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StructureHelperLogics.Data.Shapes
|
||||
{
|
||||
public class Point : IPoint
|
||||
{
|
||||
public double Area { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user