Beispiel #1
0
        public void TestNonExistantCase()
        {
            var interpreter = new SearchByClientRequestInterpreter(
                new EmptyHttpContextStorage(), new MockPropertyNameResolver());
            var result = interpreter.ParseRequestQuery();

            Assert.Null(result);
        }
Beispiel #2
0
        public void TestSearchValue()
        {
            const string search      = "Search";
            var          interpreter = new SearchByClientRequestInterpreter(
                new HttpContextStorage().SetSearchValue(search), new MockPropertyNameResolver());
            var result = interpreter.ParseRequestQuery();

            Assert.Equal(search, result);
        }
Beispiel #3
0
        public void TestEmptyPageCase()
        {
            var interpreter = new SearchByClientRequestInterpreter(
                new HttpContextStorage().SetSearchValue(string.Empty),
                new MockPropertyNameResolver());
            var result = interpreter.ParseRequestQuery();

            Assert.Null(result);
        }