Ejemplo n.º 1
0
        public SyncManager(IDiffBuilder diffBuilder, IFolderDiffProcessor folderDiffProcessor, ISyncInfo syncInfo)
        {
            IsNotNull(diffBuilder);
            IsNotNull(folderDiffProcessor);
            IsNotNull(syncInfo);

            _diffBuilder = diffBuilder;

            _diffBuilder.SourceFileFound      += file => SyncInfo.NewSourceFileFound(file);
            _diffBuilder.DestinationFileFound += file => SyncInfo.NewDestinationFileFound(file);

            _folderDiffProcessor = folderDiffProcessor;

            SyncInfo = syncInfo;
        }
Ejemplo n.º 2
0
 public void Setup()
 {
     _syncInfo = new SyncInfo();
 }