Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
 public async Task GetDevicesUnauthenticatedTest()
 {
     var session = new Api.Session(Username, Password);
     await session.GetRingDevices();
 }
Exemplo n.º 4
0
 public async Task GetDevicesUnauthenticatedTest()
 {
     var session = new Api.Session("", "");
     await session.GetRingDevices();
 }