internal ServiceMandatoryPredefinition(MandatoryPredefinition myMandatoryPredefinition)
 {
     this.PropertyName = myMandatoryPredefinition.MandatoryAttribute;
     this.DefaultValue = myMandatoryPredefinition.DefaultValue;
 }
Example #2
0
        /// <summary>
        /// Adds a mandatory definition.
        /// </summary>
        /// <param name="myMandatoryDefinition">The mandatory definition that is going to be added.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public RequestAlterVertexType AddMandatory(MandatoryPredefinition myMandatoryDefinition)
        {
            if (myMandatoryDefinition != null)
            {
                _toBeAddedMandatories = (_toBeAddedMandatories) ?? new List<MandatoryPredefinition>();
                _toBeAddedMandatories.Add(myMandatoryDefinition);
                AddMandatoryCount++;
            }

            return this;
        }