public void ApplyChanges_OneEntityNoChange_ShouldNotThrowException() { var localChange = new EntitiesChangeset(Desktop.DataStore, SyncSession); localChange.AddEntityChangeset(new EntityChangeset(EntitySync.TableName)); Assert.DoesNotThrow(() => localChange.ApplyChanges(Desktop.DataStore, new Mock <ISyncStatProvider>().Object, new ResolveAllConflicts())); }
private void ApplyChanges(EntitiesChangeset localChange, IConflictsManager conflictsManager) { SyncSession.HighBoundaryAnchor = SyncDateTimeProvider.UtcNow; localChange.ApplyChanges(Desktop.DataStore, new Mock <ISyncStatProvider>().Object, conflictsManager); }
public void ApplyChanges_NoEntity_ShouldNotThrowException() { var localChange = new EntitiesChangeset(Desktop.DataStore, SyncSession); Assert.DoesNotThrow(() => localChange.ApplyChanges(Desktop.DataStore, new Mock <ISyncStatProvider>().Object, new Mock <IConflictsManager>().Object)); }