public ModelStringRepresentationPrivateSetNoneChild2( bool parentBoolProperty, int parentIntProperty, string parentStringProperty, Guid parentGuidProperty, DateTime parentDateTimeProperty, CustomEnum parentCustomEnumProperty, CustomFlagsEnum parentCustomFlagsEnumProperty, CustomClass parentCustomClassProperty, CustomBaseClass parentCustomBaseClassProperty, CustomGenericClass <CustomClass> parentCustomGenericClassOfCustomClassProperty, bool child2BoolProperty, int child2IntProperty, string child2StringProperty, Guid child2GuidProperty, DateTime child2DateTimeProperty, CustomEnum child2CustomEnumProperty, CustomFlagsEnum child2CustomFlagsEnumProperty, CustomClass child2CustomClassProperty, CustomBaseClass child2CustomBaseClassProperty, CustomGenericClass <CustomClass> child2CustomGenericClassOfCustomClassProperty) : base(parentBoolProperty, parentIntProperty, parentStringProperty, parentGuidProperty, parentDateTimeProperty, parentCustomEnumProperty, parentCustomFlagsEnumProperty, parentCustomClassProperty, parentCustomBaseClassProperty, parentCustomGenericClassOfCustomClassProperty) { new { child2StringProperty }.AsArg().Must().NotBeNullNorWhiteSpace(); new { child2CustomClassProperty }.AsArg().Must().NotBeNull(); new { child2CustomBaseClassProperty }.AsArg().Must().NotBeNull(); new { child2CustomGenericClassOfCustomClassProperty }.AsArg().Must().NotBeNull(); this.Child2BoolProperty = child2BoolProperty; this.Child2IntProperty = child2IntProperty; this.Child2StringProperty = child2StringProperty; this.Child2GuidProperty = child2GuidProperty; this.Child2DateTimeProperty = child2DateTimeProperty; this.Child2CustomEnumProperty = child2CustomEnumProperty; this.Child2CustomFlagsEnumProperty = child2CustomFlagsEnumProperty; this.Child2CustomClassProperty = child2CustomClassProperty; this.Child2CustomBaseClassProperty = child2CustomBaseClassProperty; this.Child2CustomGenericClassOfCustomClassProperty = child2CustomGenericClassOfCustomClassProperty; }
public virtual ModelCloningPublicSetNoneParent DeepCloneWithParentCustomClassProperty(CustomClass parentCustomClassProperty) { throw new NotImplementedException("This method should be abstract. It was generated as virtual so that you aren't forced to override it when you create a new model that derives from this model. It will be overridden in the generated designer file."); }
public ModelPrivateSetConstructorMissingPropertyChild2 DeepCloneWithChildClass(CustomClass childClass) { var result = new ModelPrivateSetConstructorMissingPropertyChild2( this.ParentReadOnlyCollectionOfStringProperty?.DeepClone(), childClass); return(result); }
public ModelPrivateSetConstructorMoreDerivedThanPropertyChild2 DeepCloneWithChildCustomClass(CustomClass childCustomClass) { var result = new ModelPrivateSetConstructorMoreDerivedThanPropertyChild2( this.ParentEnumProperty.DeepClone(), (CustomMultilevelChildBaseClass)this.CustomMultilevelBaseClass?.DeepClone(), childCustomClass); return(result); }