public void DeleteTelematicsConnectionTest() { var route4Me = new Route4MeManagerV5(c_ApiKey); var connectionParams = new ConnectionParameters() { ConnectionToken = lsTelematicsConnetions[lsTelematicsConnetions.Count - 1].ConnectionToken }; var result = route4Me.DeleteTelematicsConnection(connectionParams, out ResultResponse resultResponse); Assert.NotNull(result); Assert.IsType <Connection>(result); lsTelematicsConnetions.RemoveAt(lsTelematicsConnetions.Count - 1); }
public void Dispose() { if (lsTelematicsConnetions.Count < 1) { return; } var route4Me = new Route4MeManagerV5(c_ApiKey); foreach (Connection connectionToken in lsTelematicsConnetions) { var connectionParams = new ConnectionParameters() { ConnectionToken = connectionToken.ConnectionToken }; var result = route4Me.DeleteTelematicsConnection(connectionParams, out ResultResponse resultResponse); Assert.NotNull(result); Assert.IsType <Connection>(result); } lsTelematicsConnetions = new List <Connection>(); }