public static ClassOfUnion Create()
 {
     return(new ClassOfUnion
     {
         IntClassOfIntNullFieldClassOfInt = ClassOfInt.Create(false),
         IntStringNullFieldInt = Utilities.GetRandom <int>(false),
         IntStringNullFieldString = Utilities.GetRandom <string>(false),
         IntStringNullFieldNull = null
     });
 }
Esempio n. 2
0
 public static ClassOfUnionWith2ArrayAndMap Create()
 {
     return(new ClassOfUnionWith2ArrayAndMap
     {
         IntClassOfIntNullFieldClassOfIntArray = new [] { ClassOfInt.Create(false) },
         IntClassOfIntNullFieldClassOfIntMap = new Dictionary <string, ClassOfInt>()
         {
             { "TestKey", ClassOfInt.Create(false) }
         },
         IntStringNullFieldInt = new [] { Utilities.GetRandom <int>(false) },
         IntStringNullFieldString = new [] { Utilities.GetRandom <string>(false) },
         IntStringNullFieldNull = null
     });
 }