Exemple #1
0
 protected bool Equals(Spot other)
 {
     return
         (string.Equals(ExternalCampaignNumber, other.ExternalCampaignNumber, StringComparison.InvariantCulture) &&
          string.Equals(SalesArea, other.SalesArea, StringComparison.InvariantCulture) &&
          string.Equals(GroupCode, other.GroupCode, StringComparison.InvariantCulture) &&
          string.Equals(ExternalSpotRef, other.ExternalSpotRef, StringComparison.InvariantCulture) &&
          StartDateTime.Equals(other.StartDateTime) &&
          EndDateTime.Equals(other.EndDateTime) &&
          SpotLength.Equals(other.SpotLength) &&
          string.Equals(BreakType, other.BreakType, StringComparison.InvariantCulture) &&
          string.Equals(Product, other.Product, StringComparison.InvariantCulture) &&
          string.Equals(Demographic, other.Demographic, StringComparison.InvariantCulture) &&
          ClientPicked == other.ClientPicked &&
          string.Equals(MultipartSpot, other.MultipartSpot, StringComparison.InvariantCulture) &&
          string.Equals(MultipartSpotPosition, other.MultipartSpotPosition, StringComparison.InvariantCulture) &&
          string.Equals(MultipartSpotRef, other.MultipartSpotRef, StringComparison.InvariantCulture) &&
          string.Equals(RequestedPositioninBreak, other.RequestedPositioninBreak, StringComparison.InvariantCulture) &&
          string.Equals(ActualPositioninBreak, other.ActualPositioninBreak, StringComparison.InvariantCulture) &&
          string.Equals(BreakRequest, other.BreakRequest, StringComparison.InvariantCulture) &&
          string.Equals(ExternalBreakNo, other.ExternalBreakNo, StringComparison.InvariantCulture) &&
          Sponsored == other.Sponsored &&
          Preemptable == other.Preemptable &&
          Preemptlevel == other.Preemptlevel &&
          string.Equals(IndustryCode, other.IndustryCode, StringComparison.InvariantCulture) &&
          string.Equals(ClearanceCode, other.ClearanceCode, StringComparison.InvariantCulture));
 }
Exemple #2
0
 public AssessmentViewModel()
 {
     if (StartDateTime.Equals(DateTime.MinValue))
     {
         StartDateTime = DateTime.Now;
     }
     if (EndDateTime.Equals(DateTime.MinValue))
     {
         EndDateTime = DateTime.Now;
     }
 }
 public bool Equals(Lesson other)
 {
     return(LecturersTitleAndName == other.LecturersTitleAndName && LessonTitle == other.LessonTitle &&
            LessonType == other.LessonType && LessonCodeAndClassRoom == other.LessonCodeAndClassRoom &&
            StartDateTime.Equals(other.StartDateTime) && EndDateTime.Equals(other.EndDateTime));
 }