C# Класс DomainNotificationHelper.Validation.AssertionConcern

Показать файл Открыть проект

Открытые методы

Метод Описание
AssertAreEquals ( string value, string match, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the values are equals

AssertEmailIsValid ( string email, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the string value is an valid email

AssertGuidIsNotEmpty ( System.Guid value, string message ) : DomainNotificationHelper.Events.DomainNotification

Check if the Guid value is different of Guid.Empty

AssertIsGreaterOrEqualThan ( decimal value1, decimal value2, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the decimal value 01 is bigger than decimal value 02

AssertIsGreaterOrEqualThan ( int value1, int value2, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the integer value 01 is bigger than or equals integer value 02

AssertIsGreaterThan ( decimal value1, decimal value2, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the decimal value 01 is bigger than decimal value 02

AssertIsGreaterThan ( int value1, int value2, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the integer value 01 is bigger than integer value 02

AssertIsNull ( object object1, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the object is null

AssertLength ( string stringValue, int minimum, int maximum, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the string value respects the minimum and maximum limits size

AssertMatches ( string pattern, string stringValue, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the string value matches with the Regex Pattern

AssertNotEmpty ( string stringValue, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the string value is not null, empty or white spaces

AssertNotNull ( object object1, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the object is not null

AssertRegexMatch ( string value, string regex, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the string value matches with Regex Pattern

AssertTrue ( bool boolValue, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the validation statement or boolean value is true

AssertUrlIsValid ( string url, string message ) : DomainNotificationHelper.Events.DomainNotification

Assert if the string value is an valid url

IsSatisfiedBy ( ) : bool

Приватные методы

Метод Описание
NotifyAll ( IEnumerable notifications ) : void

Описание методов

AssertAreEquals() публичный статический Метод

Assert if the values are equals
public static AssertAreEquals ( string value, string match, string message ) : DomainNotificationHelper.Events.DomainNotification
value string String value
match string String value to match
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertEmailIsValid() публичный статический Метод

Assert if the string value is an valid email
public static AssertEmailIsValid ( string email, string message ) : DomainNotificationHelper.Events.DomainNotification
email string String value
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertGuidIsNotEmpty() публичный статический Метод

Check if the Guid value is different of Guid.Empty
public static AssertGuidIsNotEmpty ( System.Guid value, string message ) : DomainNotificationHelper.Events.DomainNotification
value System.Guid Not nullable Guid
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertIsGreaterOrEqualThan() публичный статический Метод

Assert if the decimal value 01 is bigger than decimal value 02
public static AssertIsGreaterOrEqualThan ( decimal value1, decimal value2, string message ) : DomainNotificationHelper.Events.DomainNotification
value1 decimal Decimal value 01
value2 decimal Decimal value 02
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertIsGreaterOrEqualThan() публичный статический Метод

Assert if the integer value 01 is bigger than or equals integer value 02
public static AssertIsGreaterOrEqualThan ( int value1, int value2, string message ) : DomainNotificationHelper.Events.DomainNotification
value1 int Integer value 01
value2 int Integer value 02
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertIsGreaterThan() публичный статический Метод

Assert if the decimal value 01 is bigger than decimal value 02
public static AssertIsGreaterThan ( decimal value1, decimal value2, string message ) : DomainNotificationHelper.Events.DomainNotification
value1 decimal Decimal value 01
value2 decimal Decimal value 02
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertIsGreaterThan() публичный статический Метод

Assert if the integer value 01 is bigger than integer value 02
public static AssertIsGreaterThan ( int value1, int value2, string message ) : DomainNotificationHelper.Events.DomainNotification
value1 int Integer value 01
value2 int Integer value 02
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertIsNull() публичный статический Метод

Assert if the object is null
public static AssertIsNull ( object object1, string message ) : DomainNotificationHelper.Events.DomainNotification
object1 object Object to check
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertLength() публичный статический Метод

Assert if the string value respects the minimum and maximum limits size
public static AssertLength ( string stringValue, int minimum, int maximum, string message ) : DomainNotificationHelper.Events.DomainNotification
stringValue string String value
minimum int Minimun limit size
maximum int Maximun limit size
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertMatches() публичный статический Метод

Assert if the string value matches with the Regex Pattern
public static AssertMatches ( string pattern, string stringValue, string message ) : DomainNotificationHelper.Events.DomainNotification
pattern string Regex Pattern
stringValue string String value
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertNotEmpty() публичный статический Метод

Assert if the string value is not null, empty or white spaces
public static AssertNotEmpty ( string stringValue, string message ) : DomainNotificationHelper.Events.DomainNotification
stringValue string String Value
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertNotNull() публичный статический Метод

Assert if the object is not null
public static AssertNotNull ( object object1, string message ) : DomainNotificationHelper.Events.DomainNotification
object1 object Object to check
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertRegexMatch() публичный статический Метод

Assert if the string value matches with Regex Pattern
public static AssertRegexMatch ( string value, string regex, string message ) : DomainNotificationHelper.Events.DomainNotification
value string String value
regex string Regex Pattern to match
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertTrue() публичный статический Метод

Assert if the validation statement or boolean value is true
public static AssertTrue ( bool boolValue, string message ) : DomainNotificationHelper.Events.DomainNotification
boolValue bool Validation statement or boolean value
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

AssertUrlIsValid() публичный статический Метод

Assert if the string value is an valid url
public static AssertUrlIsValid ( string url, string message ) : DomainNotificationHelper.Events.DomainNotification
url string String value
message string Message to return if Assert occurred
Результат DomainNotificationHelper.Events.DomainNotification

IsSatisfiedBy() публичный статический Метод

public static IsSatisfiedBy ( ) : bool
Результат bool