So the Api is not really testable at the moment due to its dependency on HttpClient (>2.0) and WebRequest (<2.0)
Therefore I propose the following:-
- Break out the actual calls made into a different class
- create an interface
- profit
With the aim of making the Api more DI friendly this would mean a new constructor value in which a "HttpCallHandler" can be injected
So the Api is not really testable at the moment due to its dependency on HttpClient (>2.0) and WebRequest (<2.0)
Therefore I propose the following:-
With the aim of making the Api more DI friendly this would mean a new constructor value in which a "HttpCallHandler" can be injected