public override void AggregateField(Field field) { if (field.ValidationResult != ValidationResultType.Valid) { return; } Aggregate.Value = Aggregate.AsDecimal() + field.AsDecimal(); }
public override void Validate(Field field) { base.Validate(field); if (field.ValidationResult != ValidationResultType.Valid) { return; } if (field.AsDecimal() != _aggregateArg.AsDecimal()) { field.ValidationResult = FailValidationResult; } }