/// <summary> /// Initialize a new instance of the <see cref="RequestHelper"/> class. /// </summary> public RequestHelper() { AddressRequestCreator = new AddressRequestCreator(); DirectoryRequestCreator = new DirectoryRequestCreator(); ExpressWaybillRequest = new ExpressWaybillRequestCreator(); RequestCreator = new RequestCreator(); }
internal DirectoryApi( IApiHttpClient client, IApiConfig config, DirectoryRequestCreator creator) { ThrowHelper.ThrowIfNull(client, nameof(client)); ThrowHelper.ThrowIfNull(config, nameof(config)); ThrowHelper.ThrowIfNull(creator, nameof(creator)); _client = client; _config = config; _creator = creator; }