Would it be possible to mark the constructors on GridFSDownloadStream<TFileId> and GridFSUploadStream<TFileId> internal protected as opposed to just internal so that a mock can be created for these concrete classes? I am trying to build a mock of IGridFSBucket<TField> but cannot mock the OpenUploadStream or OpenDownloadStream methods because of the inaccessibility of the constructors on the return types.
Not sure of the impacts of this change or if there is a better way of mocking the IGridFSBucket for unit tests ...
- duplicates
-
CSHARP-1809 Consider allowing to implement the GridFSUploadStream[<>] and GridFSDownloadStream[<>]
- Closed