aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-11-18 12:49:31 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-11-18 12:49:31 +0200
commit2cc2bae70e86ff18d05a3579407b08e305b9053d (patch)
tree2c2b1abd5bc7c184da99d9c5ed3fb8a0fa054c73 /Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs
parent7fbf2f7cf8e2b52d83909b12658c30209f81b2bd (diff)
downloadTango-2cc2bae70e86ff18d05a3579407b08e305b9053d.tar.gz
Tango-2cc2bae70e86ff18d05a3579407b08e305b9053d.zip
Working on web services...
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs
new file mode 100644
index 000000000..4afa31edf
--- /dev/null
+++ b/Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs
@@ -0,0 +1,27 @@
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.PMR.Synchronization;
+using Tango.Transport.Web;
+
+namespace Tango.UnitTesting
+{
+ [TestClass]
+ [TestCategory("Machine Service")]
+ public class MachineService_TST
+ {
+ [TestMethod]
+ public void Check_For_Updates()
+ {
+ ITransportWebClient client = new ProtoWebClient();
+ var result = client.Post<CheckForUpdateRequest, CheckForUpdateResponse>("http://localhost:51581/api/Synchronization/CheckForUpdate", new CheckForUpdateRequest()
+ {
+ SerialNumber = "0000",
+ Version = "0.0.0.0",
+ }).Result;
+ }
+ }
+}