Exemplo n.º 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());
 }
Exemplo n.º 2
0
        public LossInfo DeepClone()
        {
            LossInfo newLossInfo = new LossInfo()
            {
                CauseOfLoss     = this.CauseOfLoss,
                ReportedDate    = this.ReportedDate,
                LossDescription = this.LossDescription,
            };

            return(newLossInfo);
        }
Exemplo n.º 3
0
        public override bool Equals(object obj)
        {
            LossInfo lossInfo = obj as LossInfo;

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

            return(this == lossInfo);
        }
Exemplo n.º 4
0
        public LossInfo DeepClone()
        {
            LossInfo newLossInfo = new LossInfo()
            {
                CauseOfLoss = this.CauseOfLoss,
                ReportedDate = this.ReportedDate,
                LossDescription = this.LossDescription,
            };

            return newLossInfo;
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }