public SalsaRepository(ISalsaClient salsa, IMapperFactory mapperFactory, ISyncErrorHandler syncErrorHandler, ISyncObjectComparator objectComparator) { _salsa = salsa; _mapperFactory = mapperFactory; _syncErrorHandler = syncErrorHandler; _objectComparator = objectComparator; }
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(); }