public BusinessService(
     IRepository repository,
     ISubstitutionService substitutionService,
     IValidationManager validationManager,
     ITsvParser <TsvModel> tsvParser,
     IRandomGenerator randomGenerator,
     AppSettings appSettings
     )
 {
     _repository          = repository;
     _substitutionService = substitutionService;
     _validationManager   = validationManager;
     _tsvParser           = tsvParser;
     _randomGenerator     = randomGenerator;
     _appSettings         = appSettings;
 }
Beispiel #2
0
 /// <param name="tsvParser">Parser that need to be used for parsing .tsv files</param>
 /// <param name="validator">Validator that need to be used for validating parsed files</param>
 /// <param name="importService">Service that need to be used to import validated data into database</param>
 public TsvLoader(ITsvParser tsvParser, ITsvFileValidator validator, IDatabaseImportService importService)
 {
     _tsvParser     = tsvParser;
     _validator     = validator;
     _importService = importService;
 }