public void WhenHandlingUnauthorizedException_ReturnMessageAndUnauthorizedStatusCode()
        {
            HttpExceptionHandler test   = GetHttpExceptionHandlerWithMockLoggerFactory();
            HttpExceptionResult  result = test.Handle(new UnauthorizedException("UnauthorizedTest"));

            result.StatusCode.ShouldBe(( int )HttpStatusCode.Unauthorized);
            result.Body.Message.ShouldNotBeNullOrEmpty();
            result.Body.ErrorId.ShouldBeNullOrEmpty();
        }
        public void WhenHandlingForbiddenException_ReturnMesasageAndForbiddenStatusCode()
        {
            HttpExceptionHandler test   = GetHttpExceptionHandlerWithMockLoggerFactory();
            HttpExceptionResult  result = test.Handle(new ForbiddenException("ForbiddenTest"));

            result.StatusCode.ShouldBe(( int )HttpStatusCode.Forbidden);
            result.Body.Message.ShouldNotBeNullOrEmpty();
            result.Body.ErrorId.ShouldBeNullOrEmpty();
        }