public Exporter(IQueueRepository source, ISalsaRepository destination, ISyncErrorHandler errorHandler, int batchSize, string name, string objectType, string queueName) { Name = name; _objectType = objectType; _queueName = queueName; _destination = destination; _errorHandler = errorHandler; _source = source; _batchSize = batchSize; }
public Sync() { var mapperFactory = new MapperFactory(); _errorHandler = new SyncErrorHandler(Config.ErrorToleranceThreshold); _salsaClient = new SalsaClient(); _objectComparator = new SyncObjectComparator(_salsaClient); _salsaRepository = new SalsaRepository(_salsaClient, mapperFactory, _errorHandler, _objectComparator); _queueRepository = new QueueRepository(mapperFactory); _notificationService = new NotificationService(new EmailService()); _syncSession = new SyncSession(_notificationService); _logTrimmer = new LogTrimmer(); }