Esempio n. 1
0
 public override bool Equals(object obj)
 {
     return(obj is Reserve reserve &&
            Name.Equals(reserve.Name) &&
            LastName.Equals(reserve.LastName) &&
            Email.Equals(reserve.Email) &&
            TotalPrice.Equals(reserve.TotalPrice) &&
            EqualityComparer <Lodging> .Default.Equals(LodgingOfReserve, reserve.LodgingOfReserve) &&
            DateTime.Compare(CheckIn, reserve.CheckIn) == 0 &&
            DateTime.Compare(CheckOut, reserve.CheckOut) == 0 &&
            StateOfReserve.Equals(reserve.StateOfReserve));
 }
Esempio n. 2
0
 private bool Equals(OutputDtoQueryOrder other)
 {
     return(Id == other.Id && IsPaid == other.IsPaid && TotalPrice.Equals(other.TotalPrice) &&
            Ordered.Equals(other.Ordered) && ListEquals(OrderedItems, other.OrderedItems));
 }
Esempio n. 3
0
 protected bool Equals(NewOrderInfoModel other)
 {
     return(ClientId == other.ClientId && OrderDate == other.OrderDate && StatusesId == other.StatusesId &&
            OrderReview == other.OrderReview && TotalPrice.Equals(other.TotalPrice) &&
            Equals(ProductsInOrder, other.ProductsInOrder));
 }
Esempio n. 4
0
 private bool Equals(OutputDtoQueryUserBaggedItem other)
 {
     return(BagOwner.Equals(other.BagOwner) && TotalPrice.Equals(other.TotalPrice) && ListEquals(Items, other.Items));
 }