new public static DynamicValue CreateSample() { DynamicValue dv = new DynamicValue() { Description = "A human-friendly description.", Source = "URI parameter name", Target = "Element:IndexedElement[0]:Element", Parse = true, Encode = EncodingType.Base64, Replace = "Regex Expression", DataType = TypeCode.String, Validation = "Regex Expression", RestrictToOptions = true }; dv.Options.Add(Option.CreateSample()); dv.Options.Add(Option.CreateSample()); return(dv); }
public static ParameterInfo CreateSample() { ParameterInfo p = new ParameterInfo() { Name = "NameSupportsInheritance", Type = SerializationType.Yaml, Uri = "http://host/path", InheritFrom = "APrecedingNamedParamInfo", Crypto = CryptoProvider.CreateSample(), Values = "Custom values as defined by Handler/Provider" }; p.Dynamic = new List <DynamicValue> { DynamicValue.CreateSample() }; p.ParentExitData = new List <ParentExitDataValue>() { ParentExitDataValue.CreateSample() }; p.ForEach = ForEachInfo.CreateSample(); return(p); }