/// <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();
 }
Beispiel #2
0
        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;
        }