6 writes to IsRequired
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2130.ValidationDetails(d => d.IsRequired = true);
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\ParameterBinderTest.cs (3)
154d.IsRequired = true; 161d.IsRequired = true; 170d.IsRequired = true;
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
375context.ValidationMetadata.IsRequired = true;
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
DataAnnotationsMetadataProviderTest.cs (1)
1135context.ValidationMetadata.IsRequired = initialValue;
18 references to IsRequired
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Metadata\DefaultModelMetadata.cs (2)
320if (ValidationMetadata.IsRequired.HasValue) 322_isRequired = ValidationMetadata.IsRequired;
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (16)
DataAnnotationsMetadataProviderTest.cs (16)
1119Assert.True(context.ValidationMetadata.IsRequired); 1141Assert.Equal(initialValue, context.ValidationMetadata.IsRequired); 1163Assert.True(context.ValidationMetadata.IsRequired); 1188Assert.True(context.ValidationMetadata.IsRequired); 1218Assert.Null(context.ValidationMetadata.IsRequired); 1239Assert.True(context.ValidationMetadata.IsRequired); 1258Assert.True(context.ValidationMetadata.IsRequired); 1277Assert.Null(context.ValidationMetadata.IsRequired); 1298Assert.Null(context.ValidationMetadata.IsRequired); 1318Assert.True(context.ValidationMetadata.IsRequired); 1337Assert.True(context.ValidationMetadata.IsRequired); 1356Assert.True(context.ValidationMetadata.IsRequired); 1375Assert.Null(context.ValidationMetadata.IsRequired); 1396Assert.Null(context.ValidationMetadata.IsRequired); 1417Assert.True(context.ValidationMetadata.IsRequired); 1438Assert.Null(context.ValidationMetadata.IsRequired);