Exemplo n.º 1
0
        public void NullSynthetic()
        {
            var item               = new RequestTelemetry();
            var extractor          = new SyntheticDimensionExtractor();
            var extractedDimension = extractor.ExtractDimension(item);

            Assert.AreEqual(bool.FalseString, extractedDimension);
        }
Exemplo n.º 2
0
        public void Synthetic()
        {
            var item = new RequestTelemetry();

            item.Context.Operation.SyntheticSource = "SomeSource";
            var extractor          = new SyntheticDimensionExtractor();
            var extractedDimension = extractor.ExtractDimension(item);

            Assert.AreEqual(bool.TrueString, extractedDimension);
        }