public void IsSyntheticReturnsTrueWhenTestRunHeaderExists() { var m = new SyntheticTrafficManager(); var actual = m.IsSynthetic(HttpModuleHelper.GetFakeHttpContext(new Dictionary<string, string> { { "SyntheticTest-RunId", "ID" } })); Assert.IsTrue(actual); }
public void GetUserIdReturnsIdFromHeader() { var m = new SyntheticTrafficManager(); var actual = m.GetUserId(HttpModuleHelper.GetFakeHttpContext(new Dictionary<string, string> { { "SyntheticTest-Location", "LOCATION" } })); Assert.AreEqual("LOCATION", actual); }
public void GetSessionIdReturnsIdFromHeader() { var m = new SyntheticTrafficManager(); var actual = m.GetSessionId(HttpModuleHelper.GetFakeHttpContext(new Dictionary<string, string> { { "SyntheticTest-RunId", "ID" } })); Assert.AreEqual("ID", actual); }
public void GetUserIdReturnsIdFromHeader() { var m = new SyntheticTrafficManager(); var actual = m.GetUserId(HttpModuleHelper.GetFakeHttpContext(new Dictionary <string, string> { { "SyntheticTest-Location", "LOCATION" } })); Assert.AreEqual("LOCATION", actual); }
public void GetSessionIdReturnsIdFromHeader() { var m = new SyntheticTrafficManager(); var actual = m.GetSessionId(HttpModuleHelper.GetFakeHttpContext(new Dictionary <string, string> { { "SyntheticTest-RunId", "ID" } })); Assert.AreEqual("ID", actual); }
public void IsSyntheticReturnsTrueWhenTestRunHeaderExists() { var m = new SyntheticTrafficManager(); var actual = m.IsSynthetic(HttpModuleHelper.GetFakeHttpContext(new Dictionary <string, string> { { "SyntheticTest-RunId", "ID" } })); Assert.IsTrue(actual); }
public void GetUserIdReturnsNullByDefault() { var m = new SyntheticTrafficManager(); Assert.IsNull(m.GetUserId(HttpModuleHelper.GetFakeHttpContext())); }
public void IsSyntheticReturnsFalseByDefault() { var m = new SyntheticTrafficManager(); Assert.IsFalse(m.IsSynthetic(HttpModuleHelper.GetFakeHttpContext())); }
public void GetUserIdReturnsNullByDefault() { var m = new SyntheticTrafficManager(); Assert.IsNull(m.GetUserId(HttpModuleHelper.GetFakeHttpContext())); }
public void IsSyntheticReturnsFalseByDefault() { var m = new SyntheticTrafficManager(); Assert.IsFalse(m.IsSynthetic(HttpModuleHelper.GetFakeHttpContext())); }
/// <summary> /// Initializes a new instance of the <see cref="SyntheticTelemetryInitializer"/> class. /// </summary> public SyntheticTelemetryInitializer() { this.syntheticTrafficManager = new SyntheticTrafficManager(); }