public InjectableTransportClientMock(TransportEventHubClient transportClient,
                                      string connectionString,
                                      EventHubClientOptions clientOptions = default) : base(connectionString, clientOptions)
 {
     TransportClient = transportClient;
     SetTransportClient(transportClient);
 }
 public InjectableTransportClientMock(TransportEventHubClient transportClient,
                                      string host,
                                      string eventHubPath,
                                      TokenCredential credential,
                                      EventHubClientOptions clientOptions = default) : base(host, eventHubPath, credential, clientOptions)
 {
     TransportClient = transportClient;
     SetTransportClient(transportClient);
 }
 private void SetTransportClient(TransportEventHubClient transportClient) =>
 typeof(EventHubClient)
 .GetProperty("InnerClient", BindingFlags.Instance | BindingFlags.NonPublic)
 .SetValue(this, transportClient);