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

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