16 references to DerivedModelType
Microsoft.AspNetCore.Mvc.Core.Test (16)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (16)
274var metadata = provider.GetMetadataForParameter(parameter, typeof(DerivedModelType));
278Assert.Equal(typeof(DerivedModelType), metadata.ModelType);
292Assert.Equal(nameof(DerivedModelType.DerivedProperty), p.Name);
301Assert.Equal(nameof(DerivedModelType.Property1), p.Name);
311Assert.Equal(nameof(DerivedModelType.Property2), p.Name);
325var metadata1 = provider.GetMetadataForParameter(parameter, typeof(DerivedModelType));
326var metadata2 = provider.GetMetadataForParameter(parameter, typeof(DerivedModelType));
342var metadata1 = provider.GetMetadataForParameter(parameter, typeof(DerivedModelType));
358var metadata = provider.GetMetadataForProperty(property, typeof(DerivedModelType));
362Assert.Equal(typeof(DerivedModelType), metadata.ModelType);
376Assert.Equal(nameof(DerivedModelType.DerivedProperty), p.Name);
385Assert.Equal(nameof(DerivedModelType.Property1), p.Name);
395Assert.Equal(nameof(DerivedModelType.Property2), p.Name);
408var metadata1 = provider.GetMetadataForProperty(property, typeof(DerivedModelType));
409var metadata2 = provider.GetMetadataForProperty(property, typeof(DerivedModelType));
424var metadata1 = provider.GetMetadataForProperty(property, typeof(DerivedModelType));