aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs
blob: 0edab542aa64d0df2aa1e34caee10c3172fc9466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.PPC.Common.MachineUpdate;
using Tango.Transport.Web;

namespace Tango.UnitTesting
{
    [TestClass]
    [TestCategory("Machine Service")]
    public class MachineService_TST
    {
        [TestMethod]
        public void Check_For_Updates()
        {
            IWebTransportClient client = new WebTransportClient();
            var result = client.PostJson<CheckForUpdateRequest, CheckForUpdateResponse>("http://localhost:51581/api/PPC/CheckForUpdate", new CheckForUpdateRequest()
            {
                SerialNumber = "0000",
                Version = "0.0.0.0",
            }).Result;
        }
    }
}