16 implementations of IValidatableObject
BasketService (1)
Models\BasketItem.cs (1)
5public class BasketItem : IValidatableObject
FormatterWebSite (2)
Models\InvalidModel.cs (1)
8public class InvalidModel : IValidatableObject
Models\RecursiveIdentifier.cs (1)
9public class RecursiveIdentifier : IValidatableObject
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Validation\DefaultModelValidatorProviderTest.cs (1)
175private class ValidatableObject : IValidatableObject
ModelBinding\Validation\DefaultObjectValidatorTests.cs (3)
1541private class ValidatableModel : IValidatableObject 1559private class SelfValidatableModelContainer : IValidatableObject 1597private class User : IValidatableObject
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
DefaultModelClientValidatorProviderTest.cs (1)
200private class ValidatableObject : IValidatableObject
ValidatableObjectAdapterTest.cs (1)
171private class SampleModel : IValidatableObject
Microsoft.AspNetCore.Mvc.IntegrationTests (5)
ActionParametersIntegrationTest.cs (1)
892private class ModelWithIValidatableObject : IValidatableObject
ValidationIntegrationTests.cs (2)
1294private class NeverValid : IValidatableObject 2194public class InvalidEvenIds : IValidatableObject
ValidationWithRecordIntegrationTests.cs (2)
1146private record NeverValid(string NeverValidProperty) : IValidatableObject 1985public class InvalidEvenIds : IValidatableObject
MyFrontend (1)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
5public class BasketItem : IValidatableObject
OrderProcessor (1)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
5public class BasketItem : IValidatableObject
13 references to IValidatableObject
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
594var model = new Mock<IValidatableObject>();
Microsoft.AspNetCore.Mvc.DataAnnotations (5)
DataAnnotationsModelValidatorProvider.cs (3)
14/// a validator for types which implement <see cref="IValidatableObject"/>. 87if (typeof(IValidatableObject).IsAssignableFrom(context.ModelMetadata.ModelType)) 99if (typeof(IValidatableObject).IsAssignableFrom(modelType))
ValidatableObjectAdapter.cs (2)
20if (!(model is IValidatableObject validatable)) 23typeof(IValidatableObject).Name,
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (5)
DataAnnotationsModelValidatorProviderTest.cs (5)
24var mockValidatable = Mock.Of<IValidatableObject>(); 98var mockValidatable = new Mock<IValidatableObject>(); 115var mockValidatable = Mock.Of<IValidatableObject>();
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\Validator.cs (1)
430if (instance is IValidatableObject validatable)
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
20[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.IValidatableObject))]