public void TestGetByID () { PoIInterface pInterface = new PoIInterface (POI_DP_URL); var pInfo = pInterface.GetByID ("ae01d34a-d0c1-4134-9107-71814b4805af", false); Assert.IsNotNull (pInfo); Assert.AreEqual (pInfo [0].FwCore.Name, "Test POI 1"); }
static void Update () { PoIInterface pInterface = new PoIInterface (POI_DP_URL); var pInfo = pInterface.GetByID ("ae01d34a-d0c1-4134-9107-71814b4805af", true); pInfo [0].FwCore.Description = Guid.NewGuid ().ToString (); pInfo[0].FwCore.LastUpdate.Responsible = "x"; bool ret = pInterface.Update (pInfo [0]); Console.WriteLine(ret); }
public void TestUpdate () { PoIInterface pInterface = new PoIInterface (POI_DP_URL); var pInfo = pInterface.GetByID ("ae01d34a-d0c1-4134-9107-71814b4805af", true); Assert.AreEqual (1, pInfo.Count); pInfo [0].FwCore.Description = Guid.NewGuid ().ToString (); pInfo [0].FwCore.LastUpdate = LastUpdate.Now; bool ret = pInterface.Update (pInfo [0]); Assert.IsTrue (ret); }