private static bool CompareWithDto(TradeOfferGetDto left, TradeOfferDto right) { if (left is null ^ right is null) { return(false); } if (left.Name != right.Name) { return(false); } if (left.ExpiryDate != right.ExpiryDate) { return(false); } if (left.Description != right.Description) { return(false); } if (left.Price != right.Price) { return(false); } if (left.Offer != right.Offer) { return(false); } if (left.BuyerId != right.BuyerId) { return(false); } return(true); }
private static bool CompareDtos(TradeOfferGetDto left, TradeOfferGetDto right) { if (left is null ^ right is null) { return(false); } if (left.Id != right.Id) { return(false); } if (left.EventType != right.EventType) { return(false); } if (left.Name != right.Name) { return(false); } if (left.CreationDate != right.CreationDate) { return(false); } if (left.ExpiryDate != right.ExpiryDate) { return(false); } if (left.Description != right.Description) { return(false); } if (left.AuthorId != right.AuthorId) { return(false); } if (left.Price != right.Price) { return(false); } if (left.Offer != right.Offer) { return(false); } if (left.BuyerId != right.BuyerId) { return(false); } return(true); }