8 references to GetQueryParameterValue
Microsoft.AspNetCore.Components (1)
Routing\SupplyParameterFromQueryValueProvider.cs (1)
32
return _queryParameterValueSupplier.
GetQueryParameterValue
(parameterInfo.PropertyType, queryParameterName);
Microsoft.AspNetCore.Components.Tests (7)
Routing\QueryParameterValueSupplierTest.cs (7)
175
var ex = Assert.Throws<InvalidOperationException>(() => _supplier.
GetQueryParameterValue
(targetType, key));
200
var ex = Assert.Throws<InvalidOperationException>(() => _supplier.
GetQueryParameterValue
(targetType.MakeArrayType(), key));
217
var ex = Assert.Throws<InvalidOperationException>(() => _supplier.
GetQueryParameterValue
(targetType, key));
253
Assert.Equal(string.Empty, _supplier.
GetQueryParameterValue
(typeof(string), "StringVal"));
266
Assert.Equal(new[] { "a", string.Empty, string.Empty, "b" }, _supplier.
GetQueryParameterValue
(typeof(string[]), "StringVals"));
283
() => _supplier.
GetQueryParameterValue
(targetType, key));
349
var actualValue = _supplier.
GetQueryParameterValue
(typeof(T), key);