Creating stub for `private static readonly` field

Viewed 855

Due on Improper Instantiation problem it is recommended to create private static readonly instance of HttpClient.

Due on lack of time I have injected mocked client into test method with client as their parameter.

The problem is how can I in simple way inject mock into private static readonly HttpClient field of SingleHttpClientInstanceController?

1 Answers
Related