444 references to QueryString
HttpAbstractions.SampleApp (1)
Program.cs (1)
18request.QueryString = new QueryString("?q1=1&q2=2");
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
EndpointHtmlRendererTest.cs (2)
762ctx.Request.QueryString = new QueryString("?query=value"); 793ctx.Request.QueryString = new QueryString("?query=value");
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesExtensions.cs (1)
173var newQueryString = queryFormat == null ? QueryString.Empty : new QueryString(formatedQueryString);
Microsoft.AspNetCore.Hosting.Tests (1)
Internal\HostingRequestStartLogTests.cs (1)
23mockRequest.Setup(request => request.QueryString).Returns(new QueryString("?query"));
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
81get { return new QueryString(HttpRequestFeature.QueryString); }
Microsoft.AspNetCore.Http.Abstractions (9)
QueryString.cs (9)
21public static readonly QueryString Empty = new QueryString(string.Empty); 81return new QueryString(string.Empty); 83return new QueryString(uriComponent); 100return new QueryString(queryValue); 117return new QueryString($"?{UrlEncoder.Default.Encode(name)}={value}"); 135return new QueryString(builder.ToString()); 165return new QueryString(builder.ToString()); 185return new QueryString(string.Concat(Value, "&", other.Value.AsSpan(1))); 206return new QueryString(builder.ToString());
Microsoft.AspNetCore.Http.Abstractions.Tests (11)
PathStringTests.cs (1)
100var query = new QueryString("?query");
QueryStringTests.cs (10)
15ExceptionAssert.ThrowsArgument(() => new QueryString("hello"), "value", "The leading '?' must be included for a non-empty query."); 25query = new QueryString(null); 29query = new QueryString(string.Empty); 37var query = new QueryString("?"); 45var query = new QueryString("?Hello=Wor#ld"); 103var q1 = new QueryString(query1); 104var q2 = new QueryString(query2); 125var q1 = new QueryString(query1); 145var queryString = new QueryString("?foo=1"); 155var queryString = new QueryString("?foo=1");
Microsoft.AspNetCore.Http.Connections.Tests (16)
HttpConnectionDispatcherTests.cs (16)
93context.Request.QueryString = new QueryString("?negotiateVersion=1"); 119context.Request.QueryString = new QueryString("?negotiateVersion=1"); 156context.Request.QueryString = new QueryString("?negotiateVersion=Invalid"); 184context.Request.QueryString = new QueryString(""); 271context.Request.QueryString = new QueryString("?negotiateVersion=1"); 860context.Request.QueryString = new QueryString("?negotiateVersion=1"); 936context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2035deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2078deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2128deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2183deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionId}"); 2273context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2299context.Request.QueryString = new QueryString("?negotiateVersion=1&UseStatefulReconnect=true"); 2328context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2357context.Request.QueryString = new QueryString("?negotiateVersion=1&UseStatefulReconnect=true"); 2789deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionId}");
Microsoft.AspNetCore.Http.Extensions (1)
QueryBuilder.cs (1)
93return new QueryString(ToString());
Microsoft.AspNetCore.Http.Extensions.Tests (39)
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (19)
36httpContext.Request.QueryString = new QueryString("?p=1&p=1"); 197httpContext.Request.QueryString = new QueryString("?p=1&p=1"); 218httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 239httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 280httpContext.Request.QueryString = new QueryString("?p=&p="); 301httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 322httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 344httpContext.Request.QueryString = new QueryString("?p=a&p=b&p=c"); 387httpContext.Request.QueryString = new QueryString("?p=a&p=b&p=c"); 430httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 473httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 516httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 559httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 601httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 628httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 655httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 682httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 709httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 736httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString");
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (3)
100httpContext.Request.QueryString = new QueryString("?p="); 121httpContext.Request.QueryString = new QueryString("?p1=Hello&p2=world!"); 178httpContext.Request.QueryString = new QueryString($"?{name}=test");
RequestDelegateGenerator\RequestDelegateCreationTests.RouteParameter.cs (3)
118httpContext.Request.QueryString = new QueryString($"?value={expectedBody}"); 136httpContext.Request.QueryString = new QueryString($"?value=fromQuery"); 153httpContext.Request.QueryString = new QueryString($"?value=fromQuery");
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (7)
78httpContext.Request.QueryString = new QueryString($"?p={UrlEncoder.Default.Encode(queryStringInput)}"); 116httpContext.Request.QueryString = new QueryString($"?time={UrlEncoder.Default.Encode(queryStringInput)}"); 148httpContext.Request.QueryString = new QueryString($"?time={UrlEncoder.Default.Encode(queryStringInput)}"); 173httpContext.Request.QueryString = new QueryString("?p=1"); 196httpContext.Request.QueryString = new QueryString("?p=1"); 212httpContext.Request.QueryString = new QueryString("?p=1"); 237httpContext.Request.QueryString = new QueryString("?p=Done");
UriHelperTests.cs (7)
20new QueryString("?name=val%23ue"), new FragmentString("#my%20value")); 37new QueryString("?name=val%23ue"), new FragmentString("#my%20value")); 77new QueryString(query), 91request.QueryString = new QueryString("?name=val%23ue"); 106request.QueryString = new QueryString("?name=val%23ue"); 145Assert.Equal(query, new QueryString(expectedQuery)); 155var query = new QueryString("?foo=1");
Microsoft.AspNetCore.Http.Tests (5)
ApplicationBuilderTests.cs (1)
96httpContext.Request.QueryString = new QueryString("?query=true");
Internal\DefaultHttpRequestTests.cs (4)
160Assert.Equal(new QueryString("?name2=value2"), request.QueryString); 293context.Request.QueryString = new QueryString("?query=true"); 307context.Request.QueryString = new QueryString("?test=true"); 335context.Request.QueryString = new QueryString("?test=true");
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (1)
1961httpContext.Request.QueryString = new QueryString("?foo");
W3CLoggingMiddlewareTests.cs (1)
58httpContext.Request.QueryString = new QueryString("?foo");
Microsoft.AspNetCore.Mvc.Core.Test (1)
RequireHttpsAttributeTests.cs (1)
87requestContext.Request.QueryString = new QueryString(queryString);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
708outputFormatterContext.HttpContext.Request.QueryString = new QueryString("?indent=" + indent);
XmlSerializerOutputFormatterTest.cs (1)
92outputFormatterContext.HttpContext.Request.QueryString = new QueryString("?indent=" + indent);
Microsoft.AspNetCore.Mvc.IntegrationTests (313)
ArrayModelBinderIntegrationTest.cs (10)
26request.QueryString = new QueryString("?parameter[0]=10&parameter[1]=11"); 70request.QueryString = new QueryString("?prefix[0]=10&prefix[1]=11"); 110request.QueryString = new QueryString("?[0]=10&[1]=11"); 150request.QueryString = new QueryString("?"); 185request.QueryString = new QueryString("?parameter[0].Name=bill&parameter[1].Name=lang"); 230request.QueryString = new QueryString("?prefix[0].Name=bill&prefix[1].Name=lang"); 271request.QueryString = new QueryString("?[0].Name=bill&[1].Name=lang"); 312request.QueryString = new QueryString("?"); 349request.QueryString = new QueryString("?parameter.Name=James&parameter.Aliases[0]=bill&parameter.Aliases[1]=william"); 390request.QueryString = new QueryString("?a=b");
BindPropertyIntegrationTest.cs (7)
38request.QueryString = new QueryString("?parameter.Name=Joey"); 65request.QueryString = new QueryString("?parameter.Name=Joey"); 92request.QueryString = new QueryString("?parameter.Name=Joey"); 117request.QueryString = new QueryString($"?{parameter.Name}=Joey"); 156request.QueryString = new QueryString($"?{parameter.Name}={input.Value}"); 212request.QueryString = new QueryString($"?{propertyDescriptor.Name}={input.Value}"); 275request.QueryString = new QueryString($"?{parameter.Name}={input}");
CollectionModelBinderIntegrationTest.cs (20)
32request.QueryString = new QueryString("?parameter[0]=10&parameter[1]=11"); 80request.QueryString = new QueryString(queryString); 116request.QueryString = new QueryString(queryString); 148request.QueryString = new QueryString("?"); 188request.QueryString = new QueryString(queryString); 228request.QueryString = new QueryString(queryString); 261request.QueryString = new QueryString("?"); 299request.QueryString = new QueryString("?parameter[0].Id=10&parameter[1].Id=11"); 358request.QueryString = new QueryString("?prefix[0].Id=10&prefix[1].Id=11"); 409request.QueryString = new QueryString("?[0].Id=10&[1].Id=11"); 461new QueryString("?parameter.index=low&parameter.index=high&parameter[low]=10&parameter[high]=11"); 504request.QueryString = new QueryString("?index=low&index=high&[high].Id=11&[low].Id=10"); 555request.QueryString = new QueryString("?"); 702request.QueryString = new QueryString(queryString); 987request.QueryString = new QueryString("?a=b"); 1015request.QueryString = new QueryString("?Index=0&Index=1&Index=2"); 1072request.QueryString = new QueryString("?Index=0&Index=1&Index=2&Index=3"); 1111request.QueryString = new QueryString("?Successes[0]=b"); 1139request.QueryString = new QueryString("?[0]=hello&[1]="); 1188request.QueryString = new QueryString("?[0]=hello&[1]=");
ComplexRecordIntegrationTest.cs (70)
44request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 94request.QueryString = new QueryString("?Customer.Name=bill"); 144request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 198request.QueryString = new QueryString("?parameter.Customer.Name=bill&paramater.Customer.Address=not-used"); 249request.QueryString = new QueryString("?parameter.ProductId=10"); 298request.QueryString = new QueryString("?"); 347new QueryString("?parameter.Customer.Name=bill&parameter.Customer.Token=" + ByteArrayEncoded); 399request.QueryString = new QueryString("?Customer.Name=bill&Customer.Token=" + ByteArrayEncoded); 451request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 503request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 556request.QueryString = new QueryString("?Customer.Name=bill"); 609request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 660request.QueryString = new QueryString("?parameter.ProductId=10"); 717request.QueryString = new QueryString("?"); 772new QueryString("?parameter.Name=bill&parameter.ProductIds[0]=10&parameter.ProductIds[1]=11"); 827request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 882request.QueryString = new QueryString("?parameter.Name=bill"); 929request.QueryString = new QueryString("?"); 975new QueryString("?parameter.Name=bill&parameter.ProductIds[0]=10&parameter.ProductIds[1]=11"); 1030request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 1085request.QueryString = new QueryString("?parameter.Name=bill"); 1132request.QueryString = new QueryString("?"); 1178new QueryString("?parameter.Name=bill&parameter.ProductIds[0].Key=key0&parameter.ProductIds[0].Value=10"); 1233request.QueryString = new QueryString("?Name=bill&ProductIds[0].Key=key0&ProductIds[0].Value=10"); 1288request.QueryString = new QueryString("?parameter.Name=bill"); 1335request.QueryString = new QueryString("?"); 1394request.QueryString = new QueryString(queryString); 1501request.QueryString = new QueryString(queryString); 1608request.QueryString = new QueryString(queryString); 1712new QueryString("?parameter.Name=bill&parameter.ProductId.Key=key0&parameter.ProductId.Value=10"); 1767request.QueryString = new QueryString("?Name=bill&ProductId.Key=key0&ProductId.Value=10"); 1831request.QueryString = new QueryString(queryString); 1916request.QueryString = new QueryString("?"); 2071request.QueryString = new QueryString("?parameter.Customer.Id=123"); 2125request.QueryString = new QueryString("?Customer.Id=123"); 2183request.QueryString = new QueryString("?customParameter.Customer.Id=123"); 2239request.QueryString = new QueryString("?"); 2291request.QueryString = new QueryString("?"); 2339request.QueryString = new QueryString("?ProductName=abc"); 2387request.QueryString = new QueryString("?"); 2439request.QueryString = new QueryString("?"); 2486request.QueryString = new QueryString("?OrderIds[0]=123"); 2536request.QueryString = new QueryString("?parameter.ProductId="); 2590request.QueryString = new QueryString("?parameter.ProductId"); 2650request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2699request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2754request => request.QueryString = new QueryString( 2809request => request.QueryString = new QueryString("?Number=23&Street=someStreet&City=Redmond&State=WA")); 2866request.QueryString = new QueryString(queryString); 2912request.QueryString = new QueryString("?Id=1&Info.Key=location1&Info.Value.Zipcode=98052"); 2981request.QueryString = new QueryString("?a=b"); 3052request.QueryString = new QueryString( 3244request.QueryString = new QueryString("?Children[0].Name=Fred&Children[1].Name=Ginger"); 3451request.QueryString = new QueryString("?"); 3493request.QueryString = new QueryString("?name=TestName"); 3536request.QueryString = new QueryString("?age=28"); 3579request.QueryString = new QueryString("?Name=test&age=28"); 3630request.QueryString = new QueryString("?Id=not-bound&Name=test"); 3676request.QueryString = new QueryString("?Id=not-bound&Name=test"); 3728request.QueryString = new QueryString("?Id=testId&Name=test"); 3771request.QueryString = new QueryString("?Name=test"); 3816request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3859request.QueryString = new QueryString("?Id=test"); 3903request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3948request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3992request.QueryString = new QueryString("?"); 4033request.QueryString = new QueryString("?Tags[0]=tag"); 4076request.QueryString = new QueryString("?parameter.Tags[0]=tag"); 4121request.QueryString = new QueryString("?Name=test&Age=7"); 4166request.QueryString = new QueryString("?Age=7");
ComplexTypeIntegrationTestBase.cs (54)
81request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 131request.QueryString = new QueryString("?Customer.Name=bill"); 181request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 232request.QueryString = new QueryString("?parameter.ProductId=10"); 281request.QueryString = new QueryString("?"); 340new QueryString("?parameter.Customer.Name=bill&parameter.Customer.Token=" + ByteArrayEncoded); 392request.QueryString = new QueryString("?Customer.Name=bill&Customer.Token=" + ByteArrayEncoded); 444request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 506request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 559request.QueryString = new QueryString("?Customer.Name=bill"); 612request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 663request.QueryString = new QueryString("?parameter.ProductId=10"); 720request.QueryString = new QueryString("?"); 780new QueryString("?parameter.Name=bill&parameter.ProductIds[0]=10&parameter.ProductIds[1]=11"); 835request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 890request.QueryString = new QueryString("?parameter.Name=bill"); 937request.QueryString = new QueryString("?"); 988new QueryString("?parameter.Name=bill&parameter.ProductIds[0]=10&parameter.ProductIds[1]=11"); 1043request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 1098request.QueryString = new QueryString("?parameter.Name=bill"); 1145request.QueryString = new QueryString("?"); 1196new QueryString("?parameter.Name=bill&parameter.ProductIds[0].Key=key0&parameter.ProductIds[0].Value=10"); 1251request.QueryString = new QueryString("?Name=bill&ProductIds[0].Key=key0&ProductIds[0].Value=10"); 1306request.QueryString = new QueryString("?parameter.Name=bill"); 1353request.QueryString = new QueryString("?"); 1430request.QueryString = new QueryString(queryString); 1537request.QueryString = new QueryString(queryString); 1644request.QueryString = new QueryString(queryString); 1753new QueryString("?parameter.Name=bill&parameter.ProductId.Key=key0&parameter.ProductId.Value=10"); 1808request.QueryString = new QueryString("?Name=bill&ProductId.Key=key0&ProductId.Value=10"); 1863request.QueryString = new QueryString("?parameter.Name=bill"); 1912request.QueryString = new QueryString("?"); 1971request.QueryString = new QueryString(queryString); 2063request.QueryString = new QueryString("?"); 2233request.QueryString = new QueryString("?parameter.Customer.Id=123"); 2287request.QueryString = new QueryString("?Customer.Id=123"); 2345request.QueryString = new QueryString("?customParameter.Customer.Id=123"); 2405request.QueryString = new QueryString("?"); 2457request.QueryString = new QueryString("?"); 2505request.QueryString = new QueryString("?ProductName=abc"); 2557request.QueryString = new QueryString("?"); 2609request.QueryString = new QueryString("?"); 2656request.QueryString = new QueryString("?OrderIds[0]=123"); 2709request.QueryString = new QueryString("?parameter.ProductId="); 2763request.QueryString = new QueryString("?parameter.ProductId"); 2829request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2878request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2945request => request.QueryString = new QueryString( 3000request => request.QueryString = new QueryString("?Number=23&Street=someStreet&City=Redmond&State=WA")); 3059request.QueryString = new QueryString(queryString); 3116request.QueryString = new QueryString("?Id=1&Info.Key=location1&Info.Value.Zipcode=98052"); 3189request.QueryString = new QueryString("?a=b"); 3267request.QueryString = new QueryString( 3473request.QueryString = new QueryString("?Children[0].Name=Fred&Children[1].Name=Ginger");
DictionaryModelBinderIntegrationTest.cs (32)
30request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 70request.QueryString = new QueryString("?parameter[key0]=10"); 108new QueryString("?parameter.index=low&parameter[low].Key=key0&parameter[low].Value=10"); 161request.QueryString = new QueryString(queryString); 198request.QueryString = new QueryString(queryString); 284request => request.QueryString = new QueryString(impliedPrefixQueryString), 285request => request.QueryString = new QueryString(noPrefixQueryString), 286request => request.QueryString = new QueryString(reversedNoPrefixQueryString), 410request.QueryString = new QueryString("?"); 446request.QueryString = new QueryString("?"); 515request.QueryString = new QueryString(queryString); 546request => request.QueryString = new QueryString(queryString), 584request => request.QueryString = new QueryString(queryString), 619request => request.QueryString = new QueryString(queryString), 654request => request.QueryString = new QueryString(queryString), 713request.QueryString = new QueryString(queryString); 740request => request.QueryString = new QueryString(queryString), 792request.QueryString = new QueryString(queryString); 832request.QueryString = new QueryString("?"); 868request.QueryString = new QueryString("?"); 918request => request.QueryString = new QueryString(queryString)); 943request => request.QueryString = new QueryString(queryString), 977request => request.QueryString = new QueryString(queryString), 1016request => request.QueryString = new QueryString(queryString), 1055request => request.QueryString = new QueryString(queryString), 1174request.QueryString = new QueryString(queryString); 1216request.QueryString = new QueryString("?a=b"); 1244request.QueryString = new QueryString("?parameter[key0]="); 1298request.QueryString = new QueryString("?parameter[key0].Age=&parameter[key0].Name=name0&parameter[key1].Age=27&parameter[key1].Name="); 1373request.QueryString = new QueryString("?parameter[Monday]=hello&parameter[Tuesday]=world&parameter[Invalid]=exclamation"); 1409request.QueryString = new QueryString("?parameter[hello]=Monday&parameter[world]=Tuesday&parameter[exclamation]=BadEnumValue"); 1451request.QueryString = new QueryString("?parameter[key0].Age=&parameter[key0].Name=name0&parameter[key1].Age=27&parameter[key1].Name=");
GenericModelBinderIntegrationTest.cs (14)
34request.QueryString = new QueryString("?parameter.index=10"); 72request.QueryString = new QueryString("?index=10"); 111request.QueryString = new QueryString("?"); 194request => request.QueryString = new QueryString("?parameter.index=0")); 237request => request.QueryString = new QueryString("?parameter.index=0")); 271request.QueryString = new QueryString("?parameter[0][0].Key=key0&parameter[0][0].Value=10"); 316request.QueryString = new QueryString("?[0][0].Key=key0&[0][0].Value=10"); 361request.QueryString = new QueryString("?"); 396request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 440request.QueryString = new QueryString("?[0].Key=key0&[0].Value=10"); 484request.QueryString = new QueryString("?"); 519request.QueryString = new QueryString( 568request.QueryString = new QueryString("?[0].Key=key0&[0].Value[0]=10&[0].Value[1]=11"); 616request.QueryString = new QueryString("?");
JQueryFormatModelBindingIntegrationTest.cs (1)
27request.QueryString = new QueryString(
KeyValuePairModelBinderIntegrationTest.cs (13)
26request.QueryString = new QueryString("?parameter.Key=key0&parameter.Value=10"); 65request.QueryString = new QueryString("?parameter.Value=10"); 107request.QueryString = new QueryString("?parameter.Value=10"); 152request.QueryString = new QueryString("?parameter.Key=10"); 194request.QueryString = new QueryString("?parameter.Key=10"); 244request.QueryString = new QueryString("?prefix.Key=key0&prefix.Value=10"); 284request.QueryString = new QueryString("?Key=key0&Value=10"); 324request.QueryString = new QueryString("?"); 362request.QueryString = new QueryString("?parameter.Key=key0&parameter.Value.Id=10"); 407request.QueryString = new QueryString("?prefix.Key=key0&prefix.Value.Id=10"); 448request.QueryString = new QueryString("?Key=key0&Value.Id=10"); 489request.QueryString = new QueryString("?"); 525request.QueryString = new QueryString("?p.Key=key1&p.Value[0]=value1&p.Value[1]=value2");
ModelPrefixSelectionIntegrationTest.cs (4)
35request.QueryString = new QueryString("?parameter="); 84request.QueryString = new QueryString("?parameter="); 129request.QueryString = new QueryString("?Name="); 172request.QueryString = new QueryString("?Name=");
SimpleTypeModelBinderIntegrationTest.cs (2)
169request.QueryString = new QueryString("?=someValue"); 331request.QueryString = new QueryString("?Parameter1=someValue&Parameter1=otherValue");
ValidationIntegrationTests.cs (42)
97request.QueryString = new QueryString("?accountId=30"); 139request.QueryString = new QueryString("?accountId=10"); 176request.QueryString = new QueryString("?parameter.CustomerName=bill"); 213request.QueryString = new QueryString("?"); 264request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 302request.QueryString = new QueryString("?"); 355request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 394request.QueryString = new QueryString("?parameter.Customer.Age=17"); 447request.QueryString = new QueryString("?Items[0].ItemId=17"); 486request.QueryString = new QueryString("?"); 534request.QueryString = new QueryString("?parameter[0].ProductId=17"); 572request.QueryString = new QueryString("?parameter[0].Name=bill"); 692request.QueryString = new QueryString("?parameter.Name=bill"); 729request.QueryString = new QueryString("?parameter.Name=billybob"); 780request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 817request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 857request.QueryString = new QueryString("?"); 915request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 952request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 1022request.QueryString = new QueryString("?parameter.Products[0].Name=bill"); 1059request.QueryString = new QueryString("?parameter.Products[0].Name=billybob"); 1110request.QueryString = new QueryString("?parameter[0].Name=bill"); 1147request.QueryString = new QueryString("?parameter[0].Name=billybob"); 1187request.QueryString = new QueryString("?"); 1227request.QueryString = new QueryString("?Id=bill"); 1267request.QueryString = new QueryString("?Zip=-123"); 1358= new QueryString($"?{nameof(ValidateSomeProperties.NeverValidBecauseType)}.{nameof(NeverValid.NeverValidProperty)}=1")); 1407= new QueryString($"?{nameof(ValidateSomeProperties.NeverValidBecauseAttribute)}=1")); 1446= new QueryString($"?{nameof(ValidateSomeProperties.ValidateNever)}=1")); 1509request => request.QueryString = new QueryString($"?{propertyName}=1")); 1615request => request.QueryString = new QueryString( 1736new QueryString("?HomeAddress.Country.Name=US&ShippingAddresses[0].Zip=45&HomeAddress.Zip=46"); 2036request.QueryString = new QueryString("?[0]=1&[1]=2"); 2088request.QueryString = new QueryString("?[0]=1&[1]=2"); 2158request.QueryString = new QueryString("?p[0].Id=1&p[1].Id=2"); 2220request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 2267request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value.NeverValidProperty=value0"); 2324request.QueryString = new QueryString("?Model.Id=12"); 2378request.QueryString = new QueryString("?Model.Id=12"); 2430request.QueryString = new QueryString("?Property1=8"); 2482request.QueryString = new QueryString("?Property1=8"); 2533request.QueryString = new QueryString("?Name=CoolName");
ValidationWithRecordIntegrationTests.cs (44)
89request.QueryString = new QueryString("?accountId=30"); 131request.QueryString = new QueryString("?accountId=10"); 164request.QueryString = new QueryString("?parameter.CustomerName=bill"); 201request.QueryString = new QueryString("?"); 245request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 283request.QueryString = new QueryString("?"); 327request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 366request.QueryString = new QueryString("?parameter.Customer.Age=17"); 412request.QueryString = new QueryString("?Items[0].ItemId=17"); 451request.QueryString = new QueryString("?"); 493request.QueryString = new QueryString("?parameter[0].ProductId=17"); 531request.QueryString = new QueryString("?parameter[0].Name=bill"); 575request.QueryString = new QueryString("?parameter.Name=bill"); 612request.QueryString = new QueryString("?parameter.Name=billybob"); 656request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 693request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 733request.QueryString = new QueryString("?"); 784request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 821request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 884request.QueryString = new QueryString("?parameter.Products[0].Name=bill"); 921request.QueryString = new QueryString("?parameter.Products[0].Name=billybob"); 968request.QueryString = new QueryString("?parameter[0].Name=bill"); 1005request.QueryString = new QueryString("?parameter[0].Name=billybob"); 1045request.QueryString = new QueryString("?"); 1079request.QueryString = new QueryString("?Id=bill"); 1119request.QueryString = new QueryString("?Zip=-123"); 1202= new QueryString($"?{nameof(ValidateSomeProperties.NeverValidBecauseType)}.{nameof(NeverValid.NeverValidProperty)}=1")); 1251= new QueryString($"?{nameof(ValidateSomeProperties.NeverValidBecauseAttribute)}=1")); 1290= new QueryString($"?{nameof(ValidateSomeProperties.ValidateNever)}=1")); 1423request => request.QueryString = new QueryString( 1539new QueryString("?HomeAddress.Country.Name=US&ShippingAddresses[0].Zip=45&HomeAddress.Zip=46"); 1827request.QueryString = new QueryString("?[0]=1&[1]=2"); 1879request.QueryString = new QueryString("?[0]=1&[1]=2"); 1949request.QueryString = new QueryString("?p[0].Id=1&p[1].Id=2"); 2011request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 2058request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value.NeverValidProperty=value0"); 2115request.QueryString = new QueryString("?Model.Id=12"); 2166request.QueryString = new QueryString("?Model.Id=12"); 2218request.QueryString = new QueryString("?Property1=8"); 2268request.QueryString = new QueryString("?Property1=8"); 2320request.QueryString = new QueryString("?Property1=8"); 2359request.QueryString = new QueryString("?Property1=8"); 2400request.QueryString = new QueryString("?Property1=8"); 2435request.QueryString = new QueryString("?Property1=SomeValue");
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (3)
459QueryString = new QueryString("?handler=Delete"), 510QueryString = new QueryString("?handler=Delete"), 555QueryString = new QueryString("?handler=Delete&handler=Add"),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (5)
CacheTagHelperTest.cs (2)
105cacheTagHelper1.ViewContext.HttpContext.Request.QueryString = new QueryString( 127cacheTagHelper2.ViewContext.HttpContext.Request.QueryString = new QueryString(
CacheTagKeyTest.cs (1)
266new QueryString("?sortoption=Adorability&Category=cats&sortOrder=");
DistributedCacheTagHelperTest.cs (2)
148cacheTagHelper1.ViewContext.HttpContext.Request.QueryString = new QueryString( 173cacheTagHelper2.ViewContext.HttpContext.Request.QueryString = new QueryString(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Rendering\HtmlHelperFormTest.cs (2)
141request.QueryString = new QueryString(queryString); 191request.QueryString = new QueryString(queryString);
Microsoft.AspNetCore.OpenApi.Tests (1)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
152context.Request.QueryString = new QueryString($"?documentName={documentName}");
Microsoft.AspNetCore.OutputCaching.Tests (14)
OutputCacheAttributeTests.cs (1)
94context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB");
OutputCacheKeyProviderTests.cs (12)
25context.HttpContext.Request.QueryString = new QueryString("?query.Key=a&query.Value=b"); 42context.HttpContext.Request.QueryString = new QueryString("?query.Key=a&query.Value=b"); 183context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 196context.HttpContext.Request.QueryString = new QueryString("?queryA=ValueA&queryB=ValueB"); 209context.HttpContext.Request.QueryString = new QueryString("?queryA=ValueA"); 222context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 237context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryA=ValueB"); 252context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueB&QueryA=ValueA"); 269context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 351context.HttpContext.Request.QueryString = new QueryString($"?QueryA=ValueA{KeyDelimiter}&QueryB=ValueB"); 364context.HttpContext.Request.QueryString = new QueryString($"?QueryA{KeyDelimiter}=ValueA&QueryB=ValueB"); 377context.HttpContext.Request.QueryString = new QueryString($"?QueryA=ValueA&QueryB=ValueB{KeyDelimiter}");
OutputCachePolicyBuilderTests.cs (1)
124context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB");
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
29context.Request.QueryString = new QueryString("?key=value");
Microsoft.AspNetCore.ResponseCaching.Tests (7)
ResponseCachingKeyProviderTests.cs (7)
23context.HttpContext.Request.QueryString = new QueryString("?query.Key=a&query.Value=b"); 115context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 131context.HttpContext.Request.QueryString = new QueryString("?queryA=ValueA&queryB=ValueB"); 147context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 165context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryA=ValueB"); 183context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueB&QueryA=ValueA"); 203context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB");
Microsoft.AspNetCore.Rewrite.Tests (1)
PatternSegments\QueryStringSegmentTests.cs (1)
16context.HttpContext.Request.QueryString = new QueryString("?hey=1");
Microsoft.AspNetCore.Routing (1)
UriBuildingContext.cs (1)
277return new QueryString(_query.ToString());
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
5093httpContext.Request.QueryString = new QueryString($"?client={client1.Connection.ConnectionId}");
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaProxyTests.cs (1)
35context.Request.QueryString = new QueryString(queryString);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (1)
285context.Request.QueryString = new QueryString("?and=something");
HttpContextBuilderTests.cs (1)
27c.Request.QueryString = new QueryString("?and=query");