Beispiel #1
0
        public void UnProcessableEntityWithMessage_Success_Should_CreateBusinessException_Detail_WithUnProcessableEntityStatusCodeAndSpecificMessage()
        {
            const string message = "Testing";
            var          ex      = BusinessException.UnProcessableEntityWithMessage(message);

            ex.StatusCode.Should().Be(HttpStatusCode.UnprocessableEntity);
            ex.StatusCodeNumber.Should().Be((int)HttpStatusCode.UnprocessableEntity);
            ex.Message.Should().Be(message);
        }