コード例 #1
0
ファイル: UrlTests.cs プロジェクト: EzyWebwerkstaden/n2cms
 public void CanGet_NameVAlueCollection()
 {
     Url u = new Url("/hello.aspx?something=someotherthing");
     var q = u.GetQueryNameValues()["something"];
     Assert.That(q, Is.EqualTo("someotherthing"));
 }
コード例 #2
0
ファイル: FakeHttpRequest.cs プロジェクト: n2cms/n2cms
		public void CreatePost(Url url, string contentType, string input, NameValueCollection queries = null, string pathInfo = null)
		{
			httpMethod = "POST";
			rawUrl = url;
			this.pathInfo = pathInfo;
			query = queries ?? url.GetQueryNameValues();
			ContentType = contentType;
			this.input = input;
			contentLength = input.Length;
		}