C# Class ModernWebStore.SharedKernel.Validation.AssertionConcern

Mostra file Open project: andrebaltieri/mwa-api

Public Methods

Method Description
AssertAreEquals ( string value, string match, string message ) : DomainNotification
AssertIsGreaterOrEqualThan ( int value1, int value2, string message ) : DomainNotification
AssertIsGreaterThan ( decimal value1, decimal value2, string message ) : DomainNotification
AssertIsGreaterThan ( int value1, int value2, string message ) : DomainNotification
AssertLength ( string stringValue, int minimum, int maximum, string message ) : DomainNotification
AssertMatches ( string pattern, string stringValue, string message ) : DomainNotification
AssertNotEmpty ( string stringValue, string message ) : DomainNotification
AssertNotNull ( object object1, string message ) : DomainNotification
AssertTrue ( bool boolValue, string message ) : DomainNotification
IsSatisfiedBy ( ) : bool

Private Methods

Method Description
NotifyAll ( IEnumerable notifications ) : void

Method Details

AssertAreEquals() public static method

public static AssertAreEquals ( string value, string match, string message ) : DomainNotification
value string
match string
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

AssertIsGreaterOrEqualThan() public static method

public static AssertIsGreaterOrEqualThan ( int value1, int value2, string message ) : DomainNotification
value1 int
value2 int
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

AssertIsGreaterThan() public static method

public static AssertIsGreaterThan ( decimal value1, decimal value2, string message ) : DomainNotification
value1 decimal
value2 decimal
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

AssertIsGreaterThan() public static method

public static AssertIsGreaterThan ( int value1, int value2, string message ) : DomainNotification
value1 int
value2 int
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

AssertLength() public static method

public static AssertLength ( string stringValue, int minimum, int maximum, string message ) : DomainNotification
stringValue string
minimum int
maximum int
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

AssertMatches() public static method

public static AssertMatches ( string pattern, string stringValue, string message ) : DomainNotification
pattern string
stringValue string
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

AssertNotEmpty() public static method

public static AssertNotEmpty ( string stringValue, string message ) : DomainNotification
stringValue string
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

AssertNotNull() public static method

public static AssertNotNull ( object object1, string message ) : DomainNotification
object1 object
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

AssertTrue() public static method

public static AssertTrue ( bool boolValue, string message ) : DomainNotification
boolValue bool
message string
return ModernWebStore.SharedKernel.Events.DomainNotification

IsSatisfiedBy() public static method

public static IsSatisfiedBy ( ) : bool
return bool