Пример #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));
        }