You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kayoub5 and I have discussed dropping the singleton use in CaptureDeviceList etc but changes here on master have yet to be made. Suggestions for improvements are welcome. 6.x is coming soon so now is a good time to propose API altering changes.
The way I see it, we already have the PcapInterface.GetAllPcapInterfaces(), and a single class for PCAP device new LibPcapLiveDevice(PcapInterface pcapIf), so the CaptureDeviceList could be removed as far as I see.
For the original request, You can:
Mock a single device by mocking the ICaptureDevice
Mock a list of devices by mocking the base class of CaptureDeviceList: ReadOnlyCollection<> (the application should use a List of CaptureDevice instead of directly referencing CaptureDeviceList.Instance)
I wish to knwo if there is any way to mock the CaptureDevices (CaptureDeviceList).
I need that to test several code, that relays on the detection of the devices, but, i can't make a mock or substitute.
Can you provide some info about it?
thanks in advance.
The text was updated successfully, but these errors were encountered: