public ImportServiceResolver(ISnhImportService snhImportService, IRenUkImportService renUkImportService)
 {
     if (snhImportService == null)
         throw new ArgumentNullException("snhImportService", "No valid SnhImportService supplied to resolver.");
     if (renUkImportService == null)
         throw new ArgumentNullException("renUkImportService", "No valid RenUkImportService supplied to resolver.");
     _Snh = snhImportService;
     _RenUk = renUkImportService;
 }
 public void Initialise()
 {
     //  Data Context and Repositories
     _db = new AggregateContext();
     _repository = new AggregateRepository(_db);
     _dataSourceRepository = new DataSourceRepository(_db);
     _dataTypeRepository = new DataTypeRepository(_db);     //  No parm, currently Enumeration
     //  DataSources and Resolver
     var renUkHelper = new RenUkHtmlHelper();
     _renUkDatasource = new RenUkDataSource(renUkHelper);
     var snhHelper = new SnhKmlHelper();
     _snhDataSource = new SnhDataSource(snhHelper);
     _dataSourceResolver = new DataSourceResolver(_snhDataSource, _renUkDatasource);
     //  Matching algorithm
     _coefficientAlgorithm = new DiceCoefficient();
     _similarityAlgorithm = new LcSubstr();
     _editDistanceAlgorithm = new LevenshteinEditDistance();
     _preProcess = new PreProcessor();
     _algorithm = new MatchingAlgorithm(_coefficientAlgorithm, 0.9f, _similarityAlgorithm, 0.9f,
                                        _editDistanceAlgorithm, 2, _preProcess);
     //  Mapper class
     _mapper = new ImportAggregateToAggregateMapper();
     //  Import Services and Resolver
     _renUkImportService = new RenUkImportService(_repository, _dataSourceRepository, _renUkDatasource, _algorithm, _mapper);
     _snhImportService = new SnhImportService(_repository, _dataSourceRepository, _snhDataSource, _algorithm,
         _mapper);
     _importServiceResolver = new ImportServiceResolver(_snhImportService, _renUkImportService);
 }