Provides helper methods for the sequence generators.
Exemple #1
0
 static internal void Populate(ImmutableFour value, uint position)
 {
     value.Prop0 = AssistantSequenceGenerator.CreateBool(position + 0);
     value.Prop1 = AssistantSequenceGenerator.CreateString(position + 1);
     value.Prop2 = Dogen.TestModels.CSharpModel.ComplexBuiltinsSequenceGenerator.Create(position + 2);
     value.Prop3 = Dogen.TestModels.CSharpModel.ImmutableOnePrimitiveSequenceGenerator.Create(position + 3);
 }
 static internal void Populate(AllObjectCollections value, uint position)
 {
     value.Prop0  = AssistantSequenceGenerator.CreateArrayList(position + 0);
     value.Prop1  = AssistantSequenceGenerator.CreateIEnumerable(position + 1);
     value.Prop2  = AssistantSequenceGenerator.CreateICollection(position + 2);
     value.Prop3  = AssistantSequenceGenerator.CreateIList(position + 3);
     value.Prop4  = AssistantSequenceGenerator.CreateHashtable(position + 4);
     value.Prop5  = AssistantSequenceGenerator.CreateIDictionary(position + 5);
     value.Prop6  = AssistantSequenceGenerator.CreateHybridDictionary(position + 6);
     value.Prop7  = AssistantSequenceGenerator.CreateNameValueCollection(position + 7);
     value.Prop8  = AssistantSequenceGenerator.CreateBitArray(position + 8);
     value.Prop9  = AssistantSequenceGenerator.CreateQueue(position + 9);
     value.Prop10 = AssistantSequenceGenerator.CreateStack(position + 10);
     value.Prop11 = AssistantSequenceGenerator.CreateSortedList(position + 11);
 }
 static internal void Populate(PrimitiveBuiltins value, uint position)
 {
     value.ByteProperty      = AssistantSequenceGenerator.CreateByte(position + 0);
     value.ShortByteProperty = AssistantSequenceGenerator.CreateShortByte(position + 1);
     value.IntProperty       = AssistantSequenceGenerator.CreateInt(position + 2);
     value.UIntProperty      = AssistantSequenceGenerator.CreateUInt(position + 3);
     value.ShortProperty     = AssistantSequenceGenerator.CreateShort(position + 4);
     value.UShortProperty    = AssistantSequenceGenerator.CreateUShort(position + 5);
     value.LongProperty      = AssistantSequenceGenerator.CreateLong(position + 6);
     value.ULongProperty     = AssistantSequenceGenerator.CreateULong(position + 7);
     value.FloatPropertyOne  = AssistantSequenceGenerator.CreateFloat(position + 8);
     value.FloatPropertyTwo  = AssistantSequenceGenerator.CreateFloat(position + 9);
     value.DoublePropertyOne = AssistantSequenceGenerator.CreateDouble(position + 10);
     value.DoublePropertyTwo = AssistantSequenceGenerator.CreateDouble(position + 11);
     value.CharProperty      = AssistantSequenceGenerator.CreateChar(position + 12);
     value.BoolProperty      = AssistantSequenceGenerator.CreateBool(position + 13);
     value.DecimalProperty   = AssistantSequenceGenerator.CreateDecimal(position + 14);
 }
 static internal void Populate(LongPrimitive value, uint position)
 {
     value.Value = AssistantSequenceGenerator.CreateLong(position);
 }
Exemple #5
0
 static internal void Populate(Descendant2 value, uint position)
 {
     Dogen.TestModels.CSharpModel.BaseSequenceGenerator.Populate(value, position);
     value.Prop0 = AssistantSequenceGenerator.CreateInt(position + 0);
 }
Exemple #6
0
 static internal void Populate(ParentOutside value, uint position)
 {
     value.Prop0 = AssistantSequenceGenerator.CreateInt(position + 0);
 }
 static internal void Populate(ThirdChildWithMembers value, uint position)
 {
     Dogen.TestModels.CSharpModel.ParentWithMembersSequenceGenerator.Populate(value, position);
     value.Prop1 = AssistantSequenceGenerator.CreateInt(position + 0);
 }
Exemple #8
0
 static internal void Populate(OneProperty value, uint position)
 {
     value.Property = AssistantSequenceGenerator.CreateInt(position + 0);
 }
Exemple #9
0
 static internal void Populate(ImmutableOnePrimitive value, uint position)
 {
     value.Prop0 = AssistantSequenceGenerator.CreateBool(position + 0);
 }
 static internal void Populate(Association value, uint position)
 {
     value.Prop0 = AssistantSequenceGenerator.CreateInt(position + 0);
     value.Prop1 = Dogen.TestModels.CSharpModel.NoPropertiesSequenceGenerator.Create(position + 1);
     value.Prop2 = Dogen.TestModels.CSharpModel.ColourTypesSequenceGenerator.Create(position + 2);
 }
 static internal void Populate(NonFinalOrphan value, uint position)
 {
     value.Prop0 = AssistantSequenceGenerator.CreateInt(position + 0);
 }
 static internal void Populate(ImmutableTwo value, uint position)
 {
     value.Prop0 = AssistantSequenceGenerator.CreateBool(position + 0);
     value.Prop1 = AssistantSequenceGenerator.CreateString(position + 1);
 }
 static internal void Populate(ComplexBuiltins value, uint position)
 {
     value.ObjectProperty = AssistantSequenceGenerator.CreateObject(position + 0);
     value.StringProperty = AssistantSequenceGenerator.CreateString(position + 1);
 }