16 references to BusinessUnit
Microsoft.AspNetCore.Mvc.Core.Test (16)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (16)
1179var employeeUnit = ModelMetadataIdentity.ForProperty(modelType.GetProperty(nameof(Employee.Unit)), typeof(BusinessUnit), modelType);
1186var unitModel = typeof(BusinessUnit);
1187var unitHead = ModelMetadataIdentity.ForProperty(unitModel.GetProperty(nameof(BusinessUnit.Head)), typeof(Employee), unitModel);
1189var unitId = ModelMetadataIdentity.ForProperty(unitModel.GetProperty(nameof(BusinessUnit.Id)), typeof(int), unitModel);
1198.Setup(mp => mp.GetMetadataForProperties(typeof(BusinessUnit)))
1220var employeeUnit = ModelMetadataIdentity.ForProperty(modelType.GetProperty(nameof(Employee.Unit)), typeof(BusinessUnit), modelType);
1227var unitModel = typeof(BusinessUnit);
1228var unitHead = ModelMetadataIdentity.ForProperty(unitModel.GetProperty(nameof(BusinessUnit.Head)), typeof(Employee), unitModel);
1230var unitId = ModelMetadataIdentity.ForProperty(unitModel.GetProperty(nameof(BusinessUnit.Id)), typeof(int), unitModel);
1238.Setup(mp => mp.GetMetadataForProperties(typeof(BusinessUnit)))
1292var employeeUnit = ModelMetadataIdentity.ForProperty(modelType.GetProperty(nameof(Employee.Unit)), typeof(BusinessUnit), modelType);
1299var unitModel = typeof(BusinessUnit);
1300var unitHead = ModelMetadataIdentity.ForProperty(unitModel.GetProperty(nameof(BusinessUnit.Head)), typeof(Employee), unitModel);
1302var unitId = ModelMetadataIdentity.ForProperty(unitModel.GetProperty(nameof(BusinessUnit.Id)), typeof(int), unitModel);
1310.Setup(mp => mp.GetMetadataForProperties(typeof(BusinessUnit)))
1647public BusinessUnit Unit { get; set; }