1

Topic: HidSharp mocking

Hi,

Thanks for the great HidSharp library, I find it very useful. I am using it in one C# project to communicate with a specific device and want to be able to write unit tests for it. Unfortunately, the library currently makes use of concrete types with no interfaces. This makes it hard to mock/fake for testing.

Is there any chance an `IHidDevice` interface could be added to the NuGet package please? I would be happy to contribute it myself, if you are accepting outside contributions and can tell me how best to share my code with you, as it isn't hosted on GitHub.

I envisage something like this:

```
public interface IHidDevice
{
    Stream Open();
    int ProductID { get; }
    int VendorID { get; }
}
```

2

Re: HidSharp mocking

Currently, for reference I had to create an interface with the methods I use, and then create a class to proxy the methods to the real class: github.com/forkeith/PlasmaTrimDotNet/blob/98bb37f80fbfda42837881a82a246533ea7855a8/HidProxy/ProxiedHidDevice.cs