public void QuickWriteTest() { var synchronizationConfigurationReaderWriter = new FileBasedSynchronizationConfigurationReaderWriter("Configuration/TestSyncConfigurations.xml"); var config = new SynchronizationConfiguration(Guid.NewGuid(), Guid.NewGuid(), SynchronizationType.BiDirectional, 2, 10, 60, null, null, null); synchronizationConfigurationReaderWriter.SaveSynchronizationConfigurations(new List<ISynchronizationConfiguration>(){config}); }
public void QuickWriteThenReadTest() { var synchronizationConfigurationReaderWriter = new FileBasedSynchronizationConfigurationReaderWriter("Configuration/TestSyncConfigurations.xml"); var config = new SynchronizationConfiguration(Guid.NewGuid(), Guid.NewGuid(), SynchronizationType.BiDirectional, 2, 10, 60, DateTimeOffset.Now, null, null); synchronizationConfigurationReaderWriter.SaveSynchronizationConfigurations(new List<ISynchronizationConfiguration>() { config }); var updatedSyncEvents = synchronizationConfigurationReaderWriter.GetSynchronizationConfigurations(); }