Beispiel #1
0
        public void GetDeviceById_InvalidInputs_ShouldThrow(string id)
        {
            WDSDeviceRepository repo = new WDSDeviceRepository(validConfig);

            Assert.Throws <DeviceNotFoundException>(() => repo.GetDeviceById(id));
        }
Beispiel #2
0
        public void GetDeviceById_ValidInputs_ReturnsCorrectResult(string id, string name)
        {
            WDSDeviceRepository repo = new WDSDeviceRepository(validConfig);

            Assert.Equal(name, repo.GetDeviceById(id)["WDS.Device.Name"]);
        }