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