Tracks anonymous user Id for Store Apps (Windows Store and Windows Phone).
Inheritance: ITelemetryInitializer
        public void InitializeSetsUserAnonymousIdOfGivenTelemetryContext()
        {
            var initializer = new UserContextInitializer();

            var telemetry = new StubTelemetry();
            initializer.Initialize(telemetry);

            Assert.NotEqual(string.Empty, telemetry.Context.User.Id);
        }
        public void InitializeSetsUserAnonymousIdOfGivenTelemetryContext()
        {
            var initializer = new UserContextInitializer();

            var telemetry = new StubTelemetry();

            initializer.Initialize(telemetry);

            Assert.NotEqual(string.Empty, telemetry.Context.User.Id);
        }
        public void InitializeSetsSameUserAnonymousIdThroughoutLifetimeOfApplication()
        {
            var initializer = new UserContextInitializer();

            var telemetry1 = new StubTelemetry();
            initializer.Initialize(telemetry1);
            var telemetry2 = new StubTelemetry();
            initializer.Initialize(telemetry2);

            Assert.Equal(telemetry1.Context.User.Id, telemetry2.Context.User.Id);
        }
        public void InitializeSetsSameUserAnonymousIdThroughoutLifetimeOfApplication()
        {
            var initializer = new UserContextInitializer();

            var telemetry1 = new StubTelemetry();

            initializer.Initialize(telemetry1);
            var telemetry2 = new StubTelemetry();

            initializer.Initialize(telemetry2);

            Assert.Equal(telemetry1.Context.User.Id, telemetry2.Context.User.Id);
        }
        public void InitializeSetsSameUserAcquisitionDateThroughtoutLifetimeOfApplication()
        {
            var initializer = new UserContextInitializer();

            var telemetry1 = new StubTelemetry();

            initializer.Initialize(telemetry1);
            var telemetry2 = new StubTelemetry();

            initializer.Initialize(telemetry2);

            Assert.Equal(telemetry1.Context.User.AcquisitionDate, telemetry2.Context.User.AcquisitionDate);
        }
        public void InitializeSetsSameUserAcquisitionDateThroughtoutLifetimeOfApplication()
        {
            var initializer = new UserContextInitializer();

            var telemetry1 = new StubTelemetry();
            initializer.Initialize(telemetry1);
            var telemetry2 = new StubTelemetry();
            initializer.Initialize(telemetry2);

            Assert.Equal(telemetry1.Context.User.AcquisitionDate, telemetry2.Context.User.AcquisitionDate);
        }