Class PromotionDataValidator

PromotionData validator.

Inheritance
System.Object
PromotionDataValidator
Implements
EPiServer.Validation.IValidate<PromotionData>
EPiServer.Validation.IValidate
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Validation
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class PromotionDataValidator : IValidate<PromotionData>, IValidate

Constructors

PromotionDataValidator(LocalizationService, PromotionInformationRepository)

Initializes and a new instance of the PromotionDataValidator class.

Declaration
public PromotionDataValidator(LocalizationService localizationService, PromotionInformationRepository redemptionRepository)
Parameters
Type Name Description
EPiServer.Framework.Localization.LocalizationService localizationService

Service used for trans

PromotionInformationRepository redemptionRepository

The repository for loading promotion redemption information from the database.

Methods

Validate(PromotionData)

Declaration
public IEnumerable<ValidationError> Validate(PromotionData promotionData)
Parameters
Type Name Description
PromotionData promotionData
Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.Validation.ValidationError>

Implements

EPiServer.Validation.IValidate<>
EPiServer.Validation.IValidate