/// <summary> /// Determines if all required fields were set. /// </summary> /// <returns> /// True - all required fields were set. /// False - one or more required fields were NOT set. /// </returns> public bool ValidateRequiredFields() { return ClaimNumber != null && LossInfo.ValidateRequiredFields() && Vehicles != null && Vehicles.Count > 0 && Vehicles.All(v => v.ValidateRequiredFields()); }
public LossInfo DeepClone() { LossInfo newLossInfo = new LossInfo() { CauseOfLoss = this.CauseOfLoss, ReportedDate = this.ReportedDate, LossDescription = this.LossDescription, }; return(newLossInfo); }
public override bool Equals(object obj) { LossInfo lossInfo = obj as LossInfo; if ((object)lossInfo == null) { return(false); } return(this == lossInfo); }
public LossInfo DeepClone() { LossInfo newLossInfo = new LossInfo() { CauseOfLoss = this.CauseOfLoss, ReportedDate = this.ReportedDate, LossDescription = this.LossDescription, }; return newLossInfo; }
public void Update(LossInfo updater) { this.CauseOfLoss = updater.CauseOfLoss ?? this.CauseOfLoss; this.ReportedDate = updater.ReportedDate ?? this.ReportedDate; this.LossDescription = updater.LossDescription ?? this.LossDescription; }