Пример #1
0
        public void BuildComparisonValidationRuleTest()
        {
            var result = validationBuilderObj.BuildComparisonValidationRule(validationMessage, validationFieldObj, validationFieldObj, "data");

            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(false);
            result[0].TargetPath.Should().Be("Events");
            result[0].Operation.FieldPath.Should().Be("Offenses");
        }