aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/MachineService
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-02-27 16:49:42 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-02-27 16:49:42 +0200
commit2ab54573d10ca59351100ab8416178be2223fc91 (patch)
tree9a5077998e301c1e86cf00b07ea98eca501fc4a8 /Software/Visual_Studio/Tango.UnitTesting/MachineService
parent88a73106e8113a4a6ce224f9205e11219939798e (diff)
downloadTango-2ab54573d10ca59351100ab8416178be2223fc91.tar.gz
Tango-2ab54573d10ca59351100ab8416178be2223fc91.zip
Added support for caching on machine studio.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/MachineService')
-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);
+ // }
+ //}
}
}