public void NullSynthetic() { var item = new RequestTelemetry(); var extractor = new SyntheticDimensionExtractor(); var extractedDimension = extractor.ExtractDimension(item); Assert.AreEqual(bool.FalseString, extractedDimension); }
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); }