public MSITestService(IHTTPClientService http, ILogger <MSITestService> logger) { _url = Environment.GetEnvironmentVariable("IDENTITY_ENDPOINT"); _secret = Environment.GetEnvironmentVariable("IDENTITY_HEADER"); _client = new HttpClient(); _endpoint = new Endpoints(); _http = http ?? throw new ArgumentNullException(nameof(http)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public MSITestController(IHTTPClientService http, IMSITestService msi, ILogger <MSITestController> logger) { _http = http ?? throw new ArgumentNullException(nameof(http)); _msi = msi ?? throw new ArgumentNullException(nameof(msi)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }