public void WhenInnerChannelIsNull_ConstructorThrowsException()
        {
            var  manager = new ClientChannelManager(new TelemetryClient(), typeof(ISimpleService));
            bool failed  = false;

            try
            {
                var channel = GetChannel(manager, null);
            } catch (ArgumentNullException)
            {
                failed = true;
            }
            Assert.IsTrue(failed, "Constructor did not throw ArgumentNullException");
        }
        public void WhenIgnoreChannelEventsTrue_And_ChannelIsOpened_NoTelemetryIsWritten()
        {
            var innerChannel = new MockClientChannel(SvcUrl);

            TestTelemetryChannel.Clear();

            var manager = new ClientChannelManager(new TelemetryClient(), typeof(ISimpleService))
            {
                IgnoreChannelEvents = true
            };
            var channel = this.GetChannel(manager, innerChannel);

            channel.Open();

            Assert.AreEqual(0, TestTelemetryChannel.CollectedData().Count, "Telemetry events were written");
        }