diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-18 12:49:31 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-18 12:49:31 +0200 |
| commit | 2cc2bae70e86ff18d05a3579407b08e305b9053d (patch) | |
| tree | 2c2b1abd5bc7c184da99d9c5ed3fb8a0fa054c73 /Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs | |
| parent | 7fbf2f7cf8e2b52d83909b12658c30209f81b2bd (diff) | |
| download | Tango-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.cs | 27 |
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; + } + } +} |
