private static void ValidateAll(IEnumerable <StructuresCalculation <ClosingStructuresInput> > closingStructuresCalculations, IAssessmentSection assessmentSection) { foreach (StructuresCalculation <ClosingStructuresInput> calculation in closingStructuresCalculations) { ClosingStructuresCalculationService.Validate(calculation, assessmentSection); } }
private static void Validate(ClosingStructuresCalculationScenarioContext context) { ClosingStructuresCalculationService.Validate(context.WrappedData, context.AssessmentSection); }