public void UnescapesQueryElements() { var query = new UriQuery("?a%3F=b%40"); Assert.AreEqual(1, query.Count()); Assert.AreEqual("b@", query["a?"]); }
public void CanParseQuery() { var query = new UriQuery("?a=b&c=d"); Assert.AreEqual(2, query.Count()); Assert.AreEqual("b", query["a"]); Assert.AreEqual("d", query["c"]); }
public static object[] Decipher(this IRegionManager regionManager, UriQuery parameters, params Type[] types) { var list = new List<object>(); for (int i = 0; i < parameters.Count(); i++) { list.Add(Deserialize(parameters[i.ToString()].DecompressString(), types[i])); } return list.ToArray(); }
public static object[] Decipher(this IRegionManager regionManager, UriQuery parameters, params Type[] types) { var list = new List <object>(); for (int i = 0; i < parameters.Count(); i++) { list.Add(Deserialize(parameters[i.ToString()].DecompressString(), types[i])); } return(list.ToArray()); }
public void CanParseEmptyQuery() { var query = new UriQuery(""); Assert.AreEqual(0, query.Count()); }