aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-03-10 09:06:35 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-03-10 09:06:35 +0200
commitabc70316f80a9cb05b320828051bb7dcbfeaad1b (patch)
treea334c1cc23b307710f6338523e5c20fb09017665 /Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs
parentcbdd79778764ce38017790e1e1f9316e52ec8104 (diff)
parent7256fe1c07cf5ecbe485c3cdac238b88dfc2cd1d (diff)
downloadTango-abc70316f80a9cb05b320828051bb7dcbfeaad1b.tar.gz
Tango-abc70316f80a9cb05b320828051bb7dcbfeaad1b.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs
index 21ab16307..d4585388a 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs
+++ b/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs
@@ -5,6 +5,7 @@ using Tango.BL;
using Tango.MachineStudio.Common.Web;
using Tango.Transport.Web;
using System.Linq;
+using System.Configuration;
namespace Tango.UnitTesting.MachineService
{
@@ -74,5 +75,34 @@ namespace Tango.UnitTesting.MachineService
Assert.IsFalse(res5.IsUpdateAvailable);
}
+
+ [TestMethod]
+ public void Login_with_new_user()
+ {
+ //LoadConfiguration();
+
+ Tango.MachineService.Controllers.MachineStudioController controller = new Tango.MachineService.Controllers.MachineStudioController();
+
+
+
+ controller.Login(new LoginRequest()
+ {
+ Email = "Mati@twine-s.com",
+ Password = "Futo8985",
+ });
+ }
+
+ //private void LoadConfiguration()
+ //{
+ // ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap();
+ // fileMap.ExeConfigFilename = @"web.config";
+
+ // Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None);
+
+ // foreach (var item in config.AppSettings.Settings.OfType<KeyValueConfigurationElement>())
+ // {
+ // ConfigurationManager.AppSettings.Add(item.Key, item.Value);
+ // }
+ //}
}
}