Exemple #1
0
        private bool InstantiateValidators(Forecast forecast)
        {
            duplicateValidator   = new ComparisonVehicleDuplicateValidator(forecast.ComparisonVehicles.ToVehicleWithIndexList());
            trimMappingValidator = new ComparisonVehicleTrimMappingValidator(forecast.ForecastVehicle,
                                                                             forecast.ComparisonVehicles.ToVehicleWithIndexList());
            comparisonValidator      = new ComparisonVehicleValidator();
            forecastVehicleValidator = new ForecastVehicleValidator();

            return(true);
        }
 private bool InstantiateValidators(TakeRateDocument takeRateDocument)
 {
     takeRateDocumentToValidate = takeRateDocument;
     vehicleValidator           = new ForecastVehicleValidator();
     return(true);
 }