Esempio n. 1
0
        public override void AggregateField(Field field)
        {
            if (field.ValidationResult != ValidationResultType.Valid)
            {
                return;
            }

            Aggregate.Value = Aggregate.AsDecimal() + field.AsDecimal();
        }
Esempio n. 2
0
        public override void Validate(Field field)
        {
            base.Validate(field);
            if (field.ValidationResult != ValidationResultType.Valid)
            {
                return;
            }

            if (field.AsDecimal() != _aggregateArg.AsDecimal())
            {
                field.ValidationResult = FailValidationResult;
            }
        }