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 GetTupleForWebDependenciesReturnsNullIfTheItemDoesNotExistInTheTable() { var tuple = ClientServerDependencyTracker.GetTupleForWebDependencies(this.webRequest); Assert.IsNull(tuple); }
public void GetTupleForWebDependenciesReturnsNullIfEntryDoesNotExistInTables() { Assert.IsNull(ClientServerDependencyTracker.GetTupleForWebDependencies(WebRequest.Create(new Uri("http://bing.com")))); }
public void GetTupleForWebDependenciesThrowsArgumentNullExceptionForNullWebRequest() { ClientServerDependencyTracker.GetTupleForWebDependencies(null); }