SnipeSharp icon indicating copy to clipboard operation
SnipeSharp copied to clipboard

Updated tests to reflect the use of RequestManagerRestSharp over RequestManager.

Open cofl opened this issue 6 years ago • 0 comments

The use of RequestManagerRestSharp in SnipeItApi was causing the tests CheckApiTokenAndUrl_SetAuthorizationHeader_SetCorrectly and CheckApiTokenAndUrl_SetHttpClientBaseAddress_SetCorrectly to fail with NullReferenceExceptions.

I updated the tests to reflect the use of the new class, and added internals visibility on the main assembly to the test assembly, to limit how much reflection we need to do.

cofl avatar Jul 23 '18 15:07 cofl