Esempio n. 1
0
        public void ShouldNotDetectWithWrongMethod(string initialBasePath)
        {
            //Arrange
            var detector = new StatusRequestDetector(initialBasePath);

            //Act
            var relPath = detector.DetectAndGetRelatedPath("POST", "/status");

            //Assert
            Assert.Null(relPath);
        }
Esempio n. 2
0
        public void ShouldDetectSubPath(string initialBasePath)
        {
            //Arrange
            var detector = new StatusRequestDetector(initialBasePath);

            //Act
            var relPath = detector.DetectAndGetRelatedPath("GET", "/status/foo");

            //Assert
            Assert.Equal("/foo", relPath);
        }