public void CreateRange_WithExpectedThresholds_IsWithinRangeSucceeds()
        {
            // Arrange
            int statusCode = BogusGenerator.Random.Int(min: 500, max: 599);
            var range      = new StatusCodeRange(500, 599);

            // Act
            bool isWithinRange = range.IsWithinRange(statusCode);

            // Assert
            Assert.True(isWithinRange);
        }
        public void CreateRange_WithOutsideExpectedThresholds_IsWithinRangeFails()
        {
            // Arrange
            int statusCode = BogusGenerator.Random.Int(min: 200, max: 299);
            var range      = new StatusCodeRange(500, 599);

            // Act
            bool isWithinRange = range.IsWithinRange(statusCode);

            // Assert
            Assert.False(isWithinRange);
        }
        public void CreateRange_WithOutsideExpectedSingleThreshold_IsWithinRangeFails()
        {
            // Arrange
            int threshold  = BogusGenerator.Random.Int(400, 599);
            int statusCode = BogusGenerator.Random.Int(200, 399);
            var range      = new StatusCodeRange(threshold);

            // Act
            bool isWithinRange = range.IsWithinRange(statusCode);

            // Assert
            Assert.False(isWithinRange);
        }