示例#1
0
        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()));
        }
示例#2
0
 private void ApplyChanges(EntitiesChangeset localChange, IConflictsManager conflictsManager)
 {
     SyncSession.HighBoundaryAnchor = SyncDateTimeProvider.UtcNow;
     localChange.ApplyChanges(Desktop.DataStore, new Mock <ISyncStatProvider>().Object, conflictsManager);
 }
示例#3
0
        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));
        }