Skip to content

Making the Api library testable #15

@LuckyNoS7evin

Description

@LuckyNoS7evin

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:-

  1. Break out the actual calls made into a different class
  2. create an interface
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions