Esempio n. 1
0
        public void BuildRequiredValidationRulesTest()
        {
            var result = validationBuilderObj.BuildRequiredValidationRules(validationMessage, lstValidationField);

            result[0].FieldPath.Should().Be("Offenses");
            result[0].SectionName.Should().Be("Events");
            result[0].Message.Should().Be("Message");
            result[0].ValidationId.Should().Be("Message");
            result[0].SelfValidation.Should().Be(true);
            result[0].TargetPath.Should().Be("Events");
            result[0].Operation.FieldPath.Should().Be("Offenses");
        }