public async Task CheckIn() { await CaasManager.CheckInClient("UITestRunner", "UITest"); var lastCheckIn = GetLastCheckIn(); Assert.AreEqual("UITestRunner", lastCheckIn.Client.Identifier); Assert.AreEqual("UITest", lastCheckIn.Client.ClientType.Name); Assert.IsNull(lastCheckIn.ExtraData); }
public async Task CheckInWithExtraData() { Tuple <double, double> model = new Tuple <double, double>(45, -45); await CaasManager.CheckInClient("UITestRunner", "UITest", model); var lastCheckIn = GetLastCheckIn(); Assert.AreEqual("UITestRunner", lastCheckIn.Client.Identifier); Assert.AreEqual("UITest", lastCheckIn.Client.ClientType.Name); var extraData = JsonConvert.DeserializeObject <Tuple <double, double> >(lastCheckIn.ExtraData); Assert.AreEqual(45, extraData.Item1); Assert.AreEqual(-45, extraData.Item2); }