예제 #1
0
 /// <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());
 }
예제 #2
0
        public LossInfo DeepClone()
        {
            LossInfo newLossInfo = new LossInfo()
            {
                CauseOfLoss     = this.CauseOfLoss,
                ReportedDate    = this.ReportedDate,
                LossDescription = this.LossDescription,
            };

            return(newLossInfo);
        }
예제 #3
0
        public override bool Equals(object obj)
        {
            LossInfo lossInfo = obj as LossInfo;

            if ((object)lossInfo == null)
            {
                return(false);
            }

            return(this == lossInfo);
        }
예제 #4
0
        public LossInfo DeepClone()
        {
            LossInfo newLossInfo = new LossInfo()
            {
                CauseOfLoss = this.CauseOfLoss,
                ReportedDate = this.ReportedDate,
                LossDescription = this.LossDescription,
            };

            return newLossInfo;
        }
예제 #5
0
 public void Update(LossInfo updater)
 {
     this.CauseOfLoss     = updater.CauseOfLoss ?? this.CauseOfLoss;
     this.ReportedDate    = updater.ReportedDate ?? this.ReportedDate;
     this.LossDescription = updater.LossDescription ?? this.LossDescription;
 }
예제 #6
0
 public void Update(LossInfo updater)
 {
     this.CauseOfLoss = updater.CauseOfLoss ?? this.CauseOfLoss;
     this.ReportedDate = updater.ReportedDate ?? this.ReportedDate;
     this.LossDescription = updater.LossDescription ?? this.LossDescription;
 }