101 references to IsValidCandidate
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionConstraintMatcherPolicy.cs (1)
114
if (candidateSet.
IsValidCandidate
(i))
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
71
if (!candidates.
IsValidCandidate
(i))
Microsoft.AspNetCore.Mvc.Core.Test (8)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (8)
125
Assert.False(candidates.
IsValidCandidate
(0));
156
Assert.False(candidates.
IsValidCandidate
(0));
202
Assert.True(candidates.
IsValidCandidate
(0));
290
Assert.True(candidates.
IsValidCandidate
(0));
329
Assert.False(candidates.
IsValidCandidate
(0));
391
Assert.True(candidates.
IsValidCandidate
(0));
431
Assert.True(candidates.
IsValidCandidate
(0));
432
Assert.True(candidates.
IsValidCandidate
(1));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
PageLoaderMatcherPolicy.cs (2)
62
if (!candidates.
IsValidCandidate
(i))
103
if (!candidates.
IsValidCandidate
(i))
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
73
if (!candidates.
IsValidCandidate
(i))
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (8)
142
Assert.False(candidates.
IsValidCandidate
(0));
173
Assert.False(candidates.
IsValidCandidate
(0));
213
Assert.True(candidates.
IsValidCandidate
(0));
264
Assert.True(candidates.
IsValidCandidate
(0));
332
Assert.False(candidates.
IsValidCandidate
(0));
392
Assert.True(candidates.
IsValidCandidate
(0));
431
Assert.True(candidates.
IsValidCandidate
(0));
432
Assert.True(candidates.
IsValidCandidate
(1));
Microsoft.AspNetCore.Mvc.Test (22)
Routing\ActionConstraintMatcherPolicyTest.cs (22)
36
Assert.True(candidateSet.
IsValidCandidate
(0));
37
Assert.True(candidateSet.
IsValidCandidate
(1));
69
Assert.True(candidateSet.
IsValidCandidate
(0));
70
Assert.False(candidateSet.
IsValidCandidate
(1));
104
Assert.False(candidateSet.
IsValidCandidate
(0));
105
Assert.False(candidateSet.
IsValidCandidate
(1));
140
Assert.False(candidateSet.
IsValidCandidate
(0));
141
Assert.False(candidateSet.
IsValidCandidate
(1));
175
Assert.True(candidateSet.
IsValidCandidate
(0));
176
Assert.False(candidateSet.
IsValidCandidate
(1));
213
Assert.False(candidateSet.
IsValidCandidate
(0));
214
Assert.False(candidateSet.
IsValidCandidate
(1));
215
Assert.True(candidateSet.
IsValidCandidate
(2));
248
Assert.False(candidateSet.
IsValidCandidate
(0));
249
Assert.True(candidateSet.
IsValidCandidate
(1));
250
Assert.False(candidateSet.
IsValidCandidate
(2));
289
Assert.True(candidateSet.
IsValidCandidate
(0));
290
Assert.False(candidateSet.
IsValidCandidate
(1));
330
Assert.True(candidateSet.
IsValidCandidate
(0));
331
Assert.False(candidateSet.
IsValidCandidate
(1));
332
Assert.False(candidateSet.
IsValidCandidate
(2));
368
Assert.True(candidateSet.
IsValidCandidate
(0));
Microsoft.AspNetCore.Routing (4)
Matching\AcceptsMatcherPolicy.cs (1)
72
if (!candidates.
IsValidCandidate
(i))
Matching\HostMatcherPolicy.cs (1)
78
if (!candidates.
IsValidCandidate
(i))
Matching\HttpMethodMatcherPolicy.cs (1)
110
if (!candidates.
IsValidCandidate
(i))
Matching\NegotiationMatcherPolicy.cs (1)
100
if (!candidates.
IsValidCandidate
(i))
Microsoft.AspNetCore.Routing.Tests (54)
Matching\AcceptsMatcherPolicyTest.cs (12)
331
Assert.True(candidates.
IsValidCandidate
(0));
352
Assert.True(candidates.
IsValidCandidate
(0));
373
Assert.True(candidates.
IsValidCandidate
(0));
400
Assert.True(candidates.
IsValidCandidate
(0));
427
Assert.True(candidates.
IsValidCandidate
(0));
454
Assert.True(candidates.
IsValidCandidate
(0));
481
Assert.True(candidates.
IsValidCandidate
(0));
508
Assert.True(candidates.
IsValidCandidate
(0));
535
Assert.False(candidates.
IsValidCandidate
(0));
564
Assert.False(candidates.
IsValidCandidate
(0));
593
Assert.False(candidates.
IsValidCandidate
(0));
594
Assert.True(candidates.
IsValidCandidate
(1));
Matching\CandidateSetTest.cs (7)
34
Assert.True(candidateSet.
IsValidCandidate
(i));
40
Assert.False(candidateSet.
IsValidCandidate
(i));
73
Assert.True(candidateSet.
IsValidCandidate
(i));
103
Assert.False(candidateSet.
IsValidCandidate
(i));
133
Assert.False(candidateSet.
IsValidCandidate
(0));
359
Assert.True(candidateSet.
IsValidCandidate
(i));
366
Assert.False(candidateSet.
IsValidCandidate
(i));
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (29)
86
Assert.True(endpoints.
IsValidCandidate
(0));
87
Assert.False(endpoints.
IsValidCandidate
(1));
106
Assert.False(endpoints.
IsValidCandidate
(0));
107
Assert.True(endpoints.
IsValidCandidate
(1));
126
Assert.True(endpoints.
IsValidCandidate
(0));
127
Assert.False(endpoints.
IsValidCandidate
(1));
146
Assert.False(endpoints.
IsValidCandidate
(0));
147
Assert.True(endpoints.
IsValidCandidate
(1));
166
Assert.False(endpoints.
IsValidCandidate
(1));
167
Assert.True(endpoints.
IsValidCandidate
(0));
186
Assert.True(endpoints.
IsValidCandidate
(0));
187
Assert.False(endpoints.
IsValidCandidate
(1));
205
Assert.False(endpoints.
IsValidCandidate
(0));
206
Assert.False(endpoints.
IsValidCandidate
(1));
226
Assert.False(endpoints.
IsValidCandidate
(0));
227
Assert.False(endpoints.
IsValidCandidate
(1));
228
Assert.True(endpoints.
IsValidCandidate
(2));
247
Assert.True(endpoints.
IsValidCandidate
(0));
248
Assert.False(endpoints.
IsValidCandidate
(1));
266
Assert.True(endpoints.
IsValidCandidate
(0));
267
Assert.False(endpoints.
IsValidCandidate
(1));
285
Assert.False(endpoints.
IsValidCandidate
(0));
286
Assert.False(endpoints.
IsValidCandidate
(1));
304
Assert.True(endpoints.
IsValidCandidate
(0));
305
Assert.False(endpoints.
IsValidCandidate
(1));
323
Assert.True(endpoints.
IsValidCandidate
(0));
324
Assert.False(endpoints.
IsValidCandidate
(1));
341
Assert.True(endpoints.
IsValidCandidate
(0));
342
Assert.False(endpoints.
IsValidCandidate
(1));
Matching\DfaMatcherTest.cs (6)
654
Assert.True(cs.
IsValidCandidate
(0));
659
Assert.True(cs.
IsValidCandidate
(1));
700
Assert.True(cs.
IsValidCandidate
(0));
705
Assert.True(cs.
IsValidCandidate
(1));
747
Assert.True(cs.
IsValidCandidate
(0));
752
Assert.True(cs.
IsValidCandidate
(1));