From 2cc2bae70e86ff18d05a3579407b08e305b9053d Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 18 Nov 2018 12:49:31 +0200 Subject: Working on web services... --- .../Tango.UnitTesting/MachineService_TST.cs | 27 ++++++++++++++++++++++ .../Tango.UnitTesting/Tango.UnitTesting.csproj | 3 ++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs (limited to 'Software/Visual_Studio/Tango.UnitTesting') 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("http://localhost:51581/api/Synchronization/CheckForUpdate", new CheckForUpdateRequest() + { + SerialNumber = "0000", + Version = "0.0.0.0", + }).Result; + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj index 98e43d0a6..aa8b71dd1 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj +++ b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj @@ -94,6 +94,7 @@ + @@ -210,7 +211,7 @@ - + \ No newline at end of file -- cgit v1.3.1