public override ValidatorResult Validate(MessageModel message) { ValidatorResult toReturn = base.Validate(message); toReturn.Concat(message.RunValidation(new List <(Func <MessageModel, bool> validation, Func <MessageModel, string> message)>() { { Rules.CategoryValueRule("PDP") }, { Rules.ActionValueRule("Ad Impression") },
public override ValidatorResult Validate(MessageModel message) { ValidatorResult toReturn = base.Validate(message); toReturn.Concat(message.RunValidation(new List <(Func <MessageModel, bool> validation, Func <MessageModel, string> message)>() { { Rules.CategoryValueRule("Cart") }, { Rules.ActionValueRule("Quantity Change") } }));
public override ValidatorResult Validate(MessageModel message) { ValidatorResult toReturn = base.Validate(message); toReturn.Concat(message.RunValidation(new List <(Func <MessageModel, bool> validation, Func <MessageModel, string> message)>() { { Rules.CategoryValueRule(new List <string>() { "General", "MA Home", "PDP", "Cart", "SERP", "Order History", "Category", "Support", "Manufacturer", "Deals" }) }, { Rules.ActionValueRule("Page View") },