public void GetSingleDeviceByAddress_Test()
 {
     // Act & Assert
     foreach (DeviceInfo dev in devices)
     {
         DeviceInfo deviceInfo = deviceRepository.GetDevice(dev.DeviceAddress);
         Assert.IsNotNull(deviceInfo);
     }
 }
Exemplo n.º 2
0
        public void When_GetDevice_by_sessionId_Should_Return_newDevice()
        {
            var repo = new DevicesRepository();

            var device = repo.GetDevice("session-001");

            Assert.IsNotNull(device);
            Assert.IsTrue(device.SessionId == "session-001");
            Assert.IsTrue(device.Id == "device-001");
        }