1 type derived from Person
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\ParameterBinderTest.cs (1)
836
private class DerivedPerson :
Person
24 references to Person
Microsoft.AspNetCore.Mvc.Core.Test (24)
ModelBinding\ParameterBinderTest.cs (24)
73
new ParameterDescriptor { Name = "myParam", ParameterType = typeof(
Person
) },
111
new ParameterDescriptor { Name = "myParam", ParameterType = typeof(
Person
) },
136
ParameterType = typeof(
Person
),
139
var method = typeof(
Person
).GetMethod(nameof(
Person
.Equals), new[] { typeof(
Person
) });
146
ParameterType = typeof(
Person
),
167
.ForType(typeof(
Person
))
178
{ attribute, parameterDescriptor, provider2.GetMetadataForType(typeof(
Person
)) },
179
{ attribute, controllerParameterDescriptor, provider2.GetMetadataForType(typeof(
Person
)) },
193
var expectedFieldName = metadata.Name ?? nameof(
Person
);
249
new ParameterDescriptor { Name = "myParam", ParameterType = typeof(
Person
) },
290
new ParameterDescriptor { Name = "myParam", ParameterType = typeof(
Person
) },
748
.Setup(o => o.GetMetadataForType(typeof(
Person
)))
791
.Setup(o => o.GetMetadataForType(typeof(
Person
)))
812
private class Person : IEquatable<
Person
>, IEquatable<object>
816
public bool Equals(
Person
other)
823
return Equals(obj as
Person
);
829
public
Person
Dad { get; set; }
831
public
Person
Mom { get; set; }
833
public IList<
Person
> Kids { get; } = new List<
Person
>();
850
private void TestMethodWithoutAttributes(
Person
person) { }
852
private void TestMethodWithAttributes([Required][AlwaysInvalid]
Person
person) { }