using System;
using GeometryServiceLibrary.DataTransferObjects;

namespace GeometryServiceLibrary
{
    public class GeometryService : IGeometryService
    {
        public double GetCircleArea(Circle circ)
        {
            return Math.PI * Math.Pow(circ.Radius, 2);
        }

        public double GetRectangleArea(Rectangle rect)
        {
            return rect.A * rect.B;
        }
    }
}
