public void ConstructCorrectDynamicParameterBasedOnCurrentSku()
        {
            //Arrange
            CacheServiceSkuType skuType = CacheServiceSkuType.Standard;
            int expectedValueNumber = 10;
            string minValue = "1GB";
            string maxValue = "10GB";
            string secondMinValue = "2GB";
            string memoryParameterName = "Memory";
            MemoryDynamicParameterSet memoryDynamicParameter = new MemoryDynamicParameterSet();

            //Act
            RuntimeDefinedParameterDictionary parameters = memoryDynamicParameter.GetDynamicParameters(skuType) 
                as RuntimeDefinedParameterDictionary;
            RuntimeDefinedParameter parameter = parameters[memoryParameterName];

            //Assert
            Assert.Equal(memoryParameterName, parameter.Name);
            Assert.Equal(2, parameter.Attributes.Count);
            Assert.True(parameter.Attributes[1] is ValidateSetAttribute);
            ValidateSetAttribute validateSetAttribute = parameter.Attributes[1] as ValidateSetAttribute;
            Assert.Equal(expectedValueNumber, validateSetAttribute.ValidValues.Count);
            Assert.Equal(minValue, validateSetAttribute.ValidValues[0]);
            Assert.Equal(secondMinValue, validateSetAttribute.ValidValues[1]);
            Assert.Equal(maxValue, validateSetAttribute.ValidValues[expectedValueNumber-1]);
        }
        public void GetCorrectDefaultMemoryValueFromDynamicParameter()
        {
            //Arrange
            CacheServiceSkuType skuType = CacheServiceSkuType.Basic;
            MemoryDynamicParameterSet memoryDynamicParameter = new MemoryDynamicParameterSet();

            //Act
            memoryDynamicParameter.GetDynamicParameters(skuType);
            string memoryValue = memoryDynamicParameter.GetMemoryValue(skuType);

            //Assert
            Assert.Equal("128MB", memoryValue);
        }