public void TelemetryEventsAreGeneratedOnAsyncCall() { TestTelemetryChannel.Clear(); using (var host = new HostingContext <AsyncService, IAsyncService>()) { host.Open(); IAsyncService client = host.GetChannel(); client.GetDataAsync().Wait(); Assert.IsTrue(TestTelemetryChannel.CollectedData().Count > 0); } }