public DeputyClient(IAuthenticator authenticator, DeputyOptions options, IHttpClient httpClient) { _authenticator = authenticator; _httpClient = httpClient; Addresses = new AddressResourceEndpoint(_authenticator, _httpClient, _serializer); Contacts = new ContactResourceEndpoint(_authenticator, _httpClient, _serializer); Employees = new EmployeeResourceEndpoint(_authenticator, _httpClient, _serializer); }
private static string GetBaseUri(DeputyOptions options) => $"https://{options.Endpoint}/api/{options.ApiVersion}";
public DeputyClient(IAuthenticator authenticator, DeputyOptions options) : this(authenticator, options, new Transport.HttpClient(GetBaseUri(options))) { }