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