Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public void AddTupleForWebDependenciesThrowsArgumentNullExceptionForNullTelemetry()
 {
     ClientServerDependencyTracker.AddTupleForWebDependencies(WebRequest.Create(new Uri("http://bing.com")), null, false);
 }
Ejemplo n.º 4
0
 public void AddTupleForWebDependenciesThrowsArgumentNullExceptionForNullWebRequest()
 {
     ClientServerDependencyTracker.AddTupleForWebDependencies(null, new DependencyTelemetry(), false);
 }