From a635302e9ae4a8ced135620e355697ccf2a27b52 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 4 Dec 2017 14:15:48 +0200 Subject: Added Tango.Serialization. Added Tango.Settings. --- Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs | 5 +++-- Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs | 3 ++- Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Tango.UnitTesting') diff --git a/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs index a04e5605d..e9fa5e6ba 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs @@ -2,6 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using Tango.DAL; using System.Linq; +using Tango.Settings; namespace Tango.UnitTesting { @@ -14,7 +15,7 @@ namespace Tango.UnitTesting { String guid = Guid.NewGuid().ToString(); - using (var db = new DAL.Remote.DB.RemoteDB("LOCALHOST\\SQLEXPRESS", false)) + using (var db = new DAL.Remote.DB.RemoteDB(SettingsManager.Default.DataBase.SQLServerAddress, false)) { var action = new DAL.Remote.DB.ACTION(); action.CODE = 1; @@ -27,7 +28,7 @@ namespace Tango.UnitTesting db.SaveChanges(); } - using (var db = new DAL.Remote.DB.RemoteDB("LOCALHOST\\SQLEXPRESS", false)) + using (var db = new DAL.Remote.DB.RemoteDB(SettingsManager.Default.DataBase.SQLServerAddress, false)) { var action = db.ACTIONS.Single(x => x.GUID == guid); db.ACTIONS.Remove(action); diff --git a/Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs index 26d197bcf..3f39211cf 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/Synchronization_TST.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using remote = Tango.DAL.Remote.DB; using local = Tango.DAL.Local.DB; using Tango.Synchronization.Remote; +using Tango.Settings; namespace Tango.UnitTesting { @@ -27,7 +28,7 @@ namespace Tango.UnitTesting [TestMethod] public void Generate_Demo_Remote_Machine() { - using (var remoteDB = new remote.RemoteDB("LOCALHOST\\SQLEXPRESS", false)) + using (var remoteDB = new remote.RemoteDB(SettingsManager.Default.DataBase.SQLServerAddress, false)) { var organization = new remote.ORGANIZATION() { diff --git a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj index fd9d04b34..79dab4c0d 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj +++ b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj @@ -112,6 +112,10 @@ {40073806-914e-4e78-97ab-fa9639308ebe} Tango.Protobuf + + {d8f1ad85-526a-4f50-b6dc-d437af63d8d8} + Tango.Settings + {ac489889-6e50-4f16-9dba-ff4c6f9ec72b} Tango.SharedUI -- cgit v1.3.1