示例#1
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);
        }
示例#2
0
        public void GetTupleForWebDependenciesReturnsNullIfTheItemDoesNotExistInTheTable()
        {
            var tuple = ClientServerDependencyTracker.GetTupleForWebDependencies(this.webRequest);

            Assert.IsNull(tuple);
        }
示例#3
0
 public void GetTupleForWebDependenciesReturnsNullIfEntryDoesNotExistInTables()
 {
     Assert.IsNull(ClientServerDependencyTracker.GetTupleForWebDependencies(WebRequest.Create(new Uri("http://bing.com"))));
 }
示例#4
0
 public void GetTupleForWebDependenciesThrowsArgumentNullExceptionForNullWebRequest()
 {
     ClientServerDependencyTracker.GetTupleForWebDependencies(null);
 }