diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-03 10:29:17 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-03 10:29:17 +0200 |
| commit | 05c7e42a8ce55a21c94338febad593bfbf638655 (patch) | |
| tree | 5465475f3565da1b724f4cd9bfcc0eb3b67fd167 /Software/Visual_Studio/Tango.UnitTesting | |
| parent | 3a70d596ada24ad6f92f729d564ab29c3e249f06 (diff) | |
| download | Tango-05c7e42a8ce55a21c94338febad593bfbf638655.tar.gz Tango-05c7e42a8ce55a21c94338febad593bfbf638655.zip | |
MERGE
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
| -rw-r--r-- | Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs index a5b29b413..26d197bcf 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs @@ -19,22 +19,7 @@ namespace Tango.UnitTesting { var console = Helper.InitializeLogging(true); - using (var remoteDB = new remote.RemoteDB("LOCALHOST\\SQLEXPRESS", false)) - { - using (var localDB = new local.LocalDB(Helper.GetSQLiteFilePath())) - { - RemoteDBComparer comparer = new RemoteDBComparer(remoteDB, localDB, "1234"); - var diffs = comparer.Compare(); - - foreach (var diff in diffs) - { - diff.Commit(); - } - - remoteDB.SaveChanges(); - localDB.SaveChanges(); - } - } + RemoteDBSynchronizer.Synchronize(Helper.GetSQLiteFilePath(), "1234"); console.WaitForConsoleExit().Wait(); } |
