public void TestNonExistantCase() { var interpreter = new SearchByClientRequestInterpreter( new EmptyHttpContextStorage(), new MockPropertyNameResolver()); var result = interpreter.ParseRequestQuery(); Assert.Null(result); }
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); }
public void TestEmptyPageCase() { var interpreter = new SearchByClientRequestInterpreter( new HttpContextStorage().SetSearchValue(string.Empty), new MockPropertyNameResolver()); var result = interpreter.ParseRequestQuery(); Assert.Null(result); }