public void NullRoleName()
        {
            var item               = new RequestTelemetry();
            var extractor          = new CloudRoleNameDimensionExtractor();
            var extractedDimension = extractor.ExtractDimension(item);

            Assert.IsNull(extractedDimension);
        }
        public void RoleName()
        {
            var item = new RequestTelemetry();

            item.Context.Cloud.RoleName = "ExpectedRoleName";
            var extractor          = new CloudRoleNameDimensionExtractor();
            var extractedDimension = extractor.ExtractDimension(item);

            Assert.AreEqual("ExpectedRoleName", extractedDimension);
        }
        public void EmptyRoleName()
        {
            var item = new RequestTelemetry();

            item.Context.Cloud.RoleName = string.Empty;
            var extractor          = new CloudRoleNameDimensionExtractor();
            var extractedDimension = extractor.ExtractDimension(item);

            Assert.IsNull(extractedDimension);
        }