Microsoft.ApplicationInsights.Web.WebTestTelemetryInitializerTests.SyntheticSourceIsSetToWellKnownValue C# (CSharp) Method

SyntheticSourceIsSetToWellKnownValue() private method

private SyntheticSourceIsSetToWellKnownValue ( ) : void
return void
        public void SyntheticSourceIsSetToWellKnownValue()
        {
            var eventTelemetry = new EventTelemetry("name");
            var source = new TestableWebTestTelemetryInitializer(new Dictionary<string, string>
                {
                    { "SyntheticTest-Location", "LOCATION" },
                    { "synthetictest-runid", "ID" },
                });

            source.Initialize(eventTelemetry);

            Assert.AreEqual("Application Insights Availability Monitoring", eventTelemetry.Context.Operation.SyntheticSource);
        }