C# Class Tests.Helpers.ModelStateTester.TestModel

Inheritance: IValidatableObject
Mostra file Open project: JonPSmith/SampleMvcWebApp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
TestModel ( ) : System.Collections.Generic
TestModel ( string myString, int myInt, bool createValidationError ) : System.Collections.Generic
Validate ( System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : IEnumerable

Method Details

TestModel() public method

public TestModel ( ) : System.Collections.Generic
return System.Collections.Generic

TestModel() public method

public TestModel ( string myString, int myInt, bool createValidationError ) : System.Collections.Generic
myString string
myInt int
createValidationError bool
return System.Collections.Generic

Validate() public method

public Validate ( System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : IEnumerable
validationContext System.ComponentModel.DataAnnotations.ValidationContext
return IEnumerable