public void ShouldGetLocalVideoDeviceByDeviceId() { IVideoDeviceManager videoDeviceManager = Resolve <IVideoDeviceManager>(); IVideoDevice videoDevice = videoDeviceManager.GetVideoDeviceById(0); Assert.IsNotNull(videoDevice); Assert.IsTrue(videoDevice.ID == 0); videoDeviceManager.Dispose(); }
public void ShouldGetAllLocalVideoDevices() { IVideoDeviceManager videoDeviceManager = Resolve <IVideoDeviceManager>(); var deviceList = videoDeviceManager.GetVideoDevices(); Assert.IsNotNull(deviceList); Assert.IsTrue(deviceList.Any()); videoDeviceManager.Dispose(); }
public void SystemShutdownEventHandler(bool b) { _videoDeviceManager.Dispose(); }