private static IEnumerable<Feature> ForOdcmClassComplex(OdcmComplexClass odcmClass) { return new[] { Feature.ForOdcmClassComplex(odcmClass), }; }
public static OdcmComplexClass OdcmComplexClass(Action<OdcmClass> config = null) { var retVal = new OdcmComplexClass(Any.CSharpIdentifier(), Any.OdcmNamespace()); if (config != null) config(retVal); return retVal; }
public static OdcmComplexClass ComplexOdcmClass(OdcmNamespace odcmNamespace, Action<OdcmClass> config = null) { var retVal = new OdcmComplexClass(Any.CSharpIdentifier(), odcmNamespace); retVal.Properties.AddRange(Any.Sequence(i => Any.PrimitiveOdcmProperty(p => p.Class = retVal))); if (config != null) config(retVal); return retVal; }