ShoppingCartValidator Class |
Namespace: CMS.Ecommerce
public class ShoppingCartValidator : IValidator
The ShoppingCartValidator type exposes the following members.
Name | Description | |
---|---|---|
ShoppingCartValidator |
Initializes a new instance of the ShoppingCartValidator class for given cart.
|
Name | Description | |
---|---|---|
Cart |
Gets shopping cart this validator was initialized for.
| |
Errors |
Gets an enumeration of validation errors associated with this validator. An empty enumeration is returned
if validation succeeded.
| |
IsValid |
Gets a value indicating whether validation succeeded.
|
Name | Description | |
---|---|---|
Validate |
Validates shopping cart and its items.
| |
ValidateCart |
Validates shopping cart with all its items.
If any validation error occurs, it is added into the Errors collection.
|
Name | Description | |
---|---|---|
ContainsTValidatorError |
Returns a value indicating whether a validation error of type TValidatorError is in Errors.
(Defined by IValidatorExtensions.) | |
FirstErrorType | (Defined by IValidatorExtensions.) | |
GetErrorMessages |
Returns collection of localized error messages that occurred during validation.
(Defined by IValidatorExtensions.) |