Table of Contents

Class FalseAssertValidator

Namespace
CloudyWing.FormValidators
Assembly
CloudyWing.FormValidators.dll

The false assert validator.

public class FalseAssertValidator : IFormValidator
Inheritance
FalseAssertValidator
Implements
Inherited Members

Constructors

FalseAssertValidator(bool, string)

Initializes a new instance of the FalseAssertValidator class.

public FalseAssertValidator(bool isFalse, string errorMessage)

Parameters

isFalse bool

if set to true [is false].

errorMessage string

The error message.

FalseAssertValidator(Func<bool>, string)

Initializes a new instance of the FalseAssertValidator class.

public FalseAssertValidator(Func<bool> falsePredicate, string errorMessage)

Parameters

falsePredicate Func<bool>

The false predicate.

errorMessage string

The error message.

Properties

ErrorMessage

Gets the error message.

public string ErrorMessage { get; }

Property Value

string

The error message.

IsValid

Returns true if ... is valid.

public bool IsValid { get; }

Property Value

bool

true if this instance is valid; otherwise, false.

Methods

Validate()

Validates this instance.

public bool Validate()

Returns

bool

The validation result.