示例#1
0
        public void AddTupleForWebDependenciesThrowsExceptionIfExists()
        {
            var telemetry      = new DependencyTelemetry();
            var falseTelemetry = new DependencyTelemetry();

            ClientServerDependencyTracker.AddTupleForWebDependencies(this.webRequest, falseTelemetry, false);
            ClientServerDependencyTracker.AddTupleForWebDependencies(this.webRequest, telemetry, false);
        }
示例#2
0
        public void AddTupleForWebDependenciesAddsTelemteryTupleToTheTable()
        {
            var telemetry = new DependencyTelemetry();

            ClientServerDependencyTracker.AddTupleForWebDependencies(this.webRequest, telemetry, false);
            var tuple = ClientServerDependencyTracker.GetTupleForWebDependencies(this.webRequest);

            Assert.IsNotNull(tuple);
            Assert.IsNotNull(tuple.Item1);
            Assert.AreEqual(telemetry, tuple.Item1);
        }
示例#3
0
 public void AddTupleForWebDependenciesThrowsArgumentNullExceptionForNullTelemetry()
 {
     ClientServerDependencyTracker.AddTupleForWebDependencies(WebRequest.Create(new Uri("http://bing.com")), null, false);
 }
示例#4
0
 public void AddTupleForWebDependenciesThrowsArgumentNullExceptionForNullWebRequest()
 {
     ClientServerDependencyTracker.AddTupleForWebDependencies(null, new DependencyTelemetry(), false);
 }