flashm123 / ShapeArea

The library to find area of the shape

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShapeArea

The library to find area of the shape.

It takes the shape parameters on input and provides the client with the area on the output:

image

This library is used to find the area of the shapes. I've tried to make architecture flexible to add new shapes using SOLID practice.

We use Factory Method to receive the concrete shape and Builder pattern to "build" the shape.

The client works with the interface - clean contract that allows him to get the area. He "doesn't know" about the type of the shape and about interface.

The project contains auto tests.

About

The library to find area of the shape


Languages

Language:C# 100.0%