public void GetLimitShouldReturnMaxValueWhenInQueryIsHigher() { var restQuery = new Http.Rest.Query(QueryStringParser.Parse("?limit=30")); Assert.Equal(23, restQuery.GetLimit(23)); }
public void GetLimitShouldReturnNullWhenQueryIsEmpty() { var restQuery = new Http.Rest.Query(QueryStringParser.Parse("")); Assert.Null(restQuery.GetLimit(23)); }