コード例 #1
0
        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") },
コード例 #2
0
        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") }
            }));
コード例 #3
0
        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") },