Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumTest" /> class.
 /// </summary>
 /// <param name="enumStringRequired">enumStringRequired (required)</param>
 /// <param name="enumString">enumString</param>
 /// <param name="enumInteger">enumInteger</param>
 /// <param name="enumIntegerOnly">enumIntegerOnly</param>
 /// <param name="enumNumber">enumNumber</param>
 /// <param name="outerEnum">outerEnum</param>
 /// <param name="outerEnumInteger">outerEnumInteger</param>
 /// <param name="outerEnumDefaultValue">outerEnumDefaultValue</param>
 /// <param name="outerEnumIntegerDefaultValue">outerEnumIntegerDefaultValue</param>
 public EnumTest(EnumStringRequiredEnum enumStringRequired, EnumStringEnum enumString = default, EnumIntegerEnum enumInteger = default, EnumIntegerOnlyEnum enumIntegerOnly = default, EnumNumberEnum enumNumber = default, OuterEnum outerEnum = default, OuterEnumInteger outerEnumInteger = default, OuterEnumDefaultValue outerEnumDefaultValue = default, OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = default)
 {
     if (enumStringRequired == null)
         throw new ArgumentNullException("enumStringRequired is a required property for EnumTest and cannot be null.");
     EnumStringRequired = enumStringRequired;
     EnumString = enumString;
     EnumInteger = enumInteger;
     EnumIntegerOnly = enumIntegerOnly;
     EnumNumber = enumNumber;
     OuterEnum = outerEnum;
     OuterEnumInteger = outerEnumInteger;
     OuterEnumDefaultValue = outerEnumDefaultValue;
     OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumTest" /> class.
 /// </summary>
 /// <param name="enumStringRequired">enumStringRequired (required).</param>
 /// <param name="enumString">enumString.</param>
 /// <param name="enumInteger">enumInteger.</param>
 /// <param name="enumIntegerOnly">enumIntegerOnly.</param>
 /// <param name="enumNumber">enumNumber.</param>
 /// <param name="outerEnum">outerEnum.</param>
 /// <param name="outerEnumInteger">outerEnumInteger.</param>
 /// <param name="outerEnumDefaultValue">outerEnumDefaultValue.</param>
 /// <param name="outerEnumIntegerDefaultValue">outerEnumIntegerDefaultValue.</param>
 public EnumTest(EnumStringRequiredEnum enumStringRequired, EnumStringEnum enumString = default, EnumIntegerEnum enumInteger = default, EnumIntegerOnlyEnum enumIntegerOnly = default, EnumNumberEnum enumNumber = default, OuterEnum outerEnum = default, OuterEnumInteger outerEnumInteger = default, OuterEnumDefaultValue outerEnumDefaultValue = default, OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = default)
 {
     this.EnumStringRequired           = enumStringRequired;
     this.EnumString                   = enumString;
     this.EnumInteger                  = enumInteger;
     this.EnumIntegerOnly              = enumIntegerOnly;
     this.EnumNumber                   = enumNumber;
     this.OuterEnum                    = outerEnum;
     this.OuterEnumInteger             = outerEnumInteger;
     this.OuterEnumDefaultValue        = outerEnumDefaultValue;
     this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
     this.AdditionalProperties         = new Dictionary <string, object>();
 }