public void NoUserIdIfUserAgentHeaderIsEmpty()
        {
            UserIdFromUserAgentInitializer initializer = new UserIdFromUserAgentInitializer(FakeHttpContextAccessor(false));
            ITelemetry telemetry = FakeTelemetry();

            initializer.Initialize(telemetry);

            (telemetry as RequestTelemetry).Context.User.Id.Should().NotBe("User-Agent");
        }
        public void AddUserIdFromAgentHeaderToTelemetry()
        {
            UserIdFromUserAgentInitializer initializer = new UserIdFromUserAgentInitializer(FakeHttpContextAccessor(true));
            ITelemetry telemetry = FakeTelemetry();

            initializer.Initialize(telemetry);

            (telemetry as RequestTelemetry).Context.User.Id.Should().Be("User-Agent");
        }