11 references to FindConstructor
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactory.cs (1)
1572
var (constructor, parameters) = ParameterBindingMethodCache.Instance.
FindConstructor
(parameterType);
src\Shared\PropertyAsParameterInfo.cs (1)
106
var (constructor, constructorParameters) = cache.
FindConstructor
(parameters[i].ParameterType);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
ParameterBindingMethodCacheTests.cs (9)
475
var (constructor, parameters) = cache.
FindConstructor
(type);
487
var (constructor, parameters) = cache.
FindConstructor
(type);
501
var (constructor, parameters) = cache.
FindConstructor
(type);
513
var (constructor, parameters) = cache.
FindConstructor
(type);
525
var (constructor, parameters) = cache.
FindConstructor
(type);
683
var ex = Assert.Throws<InvalidOperationException>(() => cache.
FindConstructor
(type));
693
var ex = Assert.Throws<InvalidOperationException>(() => cache.
FindConstructor
(type));
703
var ex = Assert.Throws<InvalidOperationException>(() => cache.
FindConstructor
(type));
715
var ex = Assert.Throws<InvalidOperationException>(() => cache.
FindConstructor
(type));