Esempio n. 1
0
        public void HttpContextService_FullPath_HappyFlow()
        {
            // arrange
            string path        = "/page";
            string queryString = "?value=1&value2=3";

            _mockHttpContext.SetRequestPath(path);
            _mockHttpContext.SetQueryString(queryString);

            // act
            string result = _service.FullPath;

            // assert
            Assert.AreEqual($"{path}{queryString}", result);
        }