public void AddTupleForWebDependenciesThrowsExceptionIfExists() { var telemetry = new DependencyTelemetry(); var falseTelemetry = new DependencyTelemetry(); ClientServerDependencyTracker.AddTupleForWebDependencies(this.webRequest, falseTelemetry, false); ClientServerDependencyTracker.AddTupleForWebDependencies(this.webRequest, telemetry, false); }
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); }
public void AddTupleForWebDependenciesThrowsArgumentNullExceptionForNullTelemetry() { ClientServerDependencyTracker.AddTupleForWebDependencies(WebRequest.Create(new Uri("http://bing.com")), null, false); }
public void AddTupleForWebDependenciesThrowsArgumentNullExceptionForNullWebRequest() { ClientServerDependencyTracker.AddTupleForWebDependencies(null, new DependencyTelemetry(), false); }