コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public void Synchronise()
 {
     var syncService = new GenericSynchronisationService <IGithubIssue, string>(
         i => i.Id,
         new OutlookSyncProvider(),
         new GithubSyncProvider(),
         new GithubSyncSettings(),
         SyncDirection.TwoWay);
 }