public void GetRequestTelemetryReturnsRequestTelemetryFromItems()
        {
            var expected = new RequestTelemetry();

            var context = HttpModuleHelper.GetFakeHttpContextBase();

            context.ApplicationInstance = HttpModuleHelper.GetFakeHttpApplication();
            context.ApplicationInstance.Context.Items.Add(RequestTrackingConstants.RequestTelemetryItemName, expected);

            var actual = context.GetRequestTelemetry();

            Assert.AreSame(expected, actual);
        }
 public void GetRequestTelemetryReturnsNullIfRequestNotAvailable()
 {
     Assert.IsNull(HttpModuleHelper.GetFakeHttpContextBase().GetRequestTelemetry());
 }