public async Task GetDevicesTest() { if (!IsSessionActive()) { return; } var devices = await session.GetRingDevices(); Assert.IsTrue(devices.Chimes.Count > 0 || devices.Doorbots.Count > 0 || devices.AuthorizedDoorbots.Count > 0 || devices.StickupCams.Count > 0, "No doorbots, stickup cams and/or chimes returned"); }
public async Task GetDevicesTest() { var session = new Api.Session(Username, Password); await session.Authenticate(); var devices = await session.GetRingDevices(); Assert.IsTrue(devices.Chimes.Count > 0 && devices.Doorbots.Count > 0, "No doorbots and/or chimes returned"); }
public async Task GetDevicesUnauthenticatedTest() { var session = new Api.Session(Username, Password); await session.GetRingDevices(); }
public async Task GetDevicesUnauthenticatedTest() { var session = new Api.Session("", ""); await session.GetRingDevices(); }