/// <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(); }
/// <summary> /// Initialize a new instance of the <see cref="ExpressWaybillApi"/> class. /// </summary> /// <param name="client"></param> /// <param name="config"></param> /// <param name="creator"></param> public ExpressWaybillApi( IApiHttpClient client, IApiConfig config, ExpressWaybillRequestCreator creator) { ThrowHelper.ThrowIfNull(client, nameof(client)); ThrowHelper.ThrowIfNull(config, nameof(config)); ThrowHelper.ThrowIfNull(creator, nameof(creator)); _client = client; _config = config; _creator = creator; }