Creating stub for `private static readonly` field
问题 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: how can I in simple way inject mock into private static readonly HttpClient field of SingleHttpClientInstanceController ? Answer: There is no