static void ValidateAndCalculateArea(Logger logger, List <Point> points) { long result = AreaCalculator.GetValidatedArea(points, logger); if (result != 0) { Console.WriteLine("--Square of area is " + result); } else { Console.WriteLine("--Calculating of area square is incorrect.Please input valid coordinates of points"); } }