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);
 }
        public void Initialise()
        {
            _db = new AggregateContext();
            _repository = new AggregateRepository(_db);
            _dataSourceRepository = new DataSourceRepository(_db);

            var helper = new SnhKmlHelper();
            _datasource = new SnhDataSource(helper);

            _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 = new ImportAggregateToAggregateMapper();

            _service = new SnhImportService(_repository, _dataSourceRepository, _datasource, _algorithm, _mapper);
        }