Esempio n. 1
0
        public void NotAcceptableWithMessage_Success_Should_CreateBusinessException_Detail_WithNotAcceptableStatusCodeAndSpecificMessage()
        {
            const string message = "Testing";
            var          ex      = BusinessException.NotAcceptableWithMessage(message);

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