barrycarey / SnipeSharp

A c# wrapper for the Snipe IT API
25 stars 30 forks source link

Updated tests to reflect the use of RequestManagerRestSharp over RequestManager. #11

Open cofl opened 5 years ago

cofl commented 5 years ago

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.