public GenericSyncServiceTwoWayTests() { _localProvider = Substitute.For <ISynchronisationProvider <SyncClass, int> >(); _remoteProvider = Substitute.For <ISynchronisationProvider <SyncClass, int> >(); _settings = Substitute.For <ISyncSettings>(); _settings.LastSync = DateTime.Today; _syncService = new GenericSynchronisationService <SyncClass, int>(c => c.Id, _localProvider, _remoteProvider, _settings, SyncDirection.TwoWay); }
public GenericSyncServiceTwoWayTests() { _localProvider = Substitute.For<ISynchronisationProvider<SyncClass, int>>(); _remoteProvider = Substitute.For<ISynchronisationProvider<SyncClass, int>>(); _settings = Substitute.For<ISyncSettings>(); _settings.LastSync = DateTime.Today; _syncService = new GenericSynchronisationService<SyncClass, int>(c => c.Id, _localProvider, _remoteProvider, _settings, SyncDirection.TwoWay); }
public void Synchronise() { var syncService = new GenericSynchronisationService <IGithubIssue, string>( i => i.Id, new OutlookSyncProvider(), new GithubSyncProvider(), new GithubSyncSettings(), SyncDirection.TwoWay); }