public Offer(Price price, Offer clone, decimal cost) : this(clone, cost) { Id = new OfferComposedId(); Id.RegionId = price.Id.RegionId; PriceId = price.Id.PriceId; Price = price; }
public Offer(Offer offer, decimal cost) { Clone(offer); Id = new OfferComposedId(); Id.OfferId = offer.Id.OfferId++; Price = offer.Price; Cost = cost; }
public Offer(Price price, decimal cost) { Id = new OfferComposedId(); Id.RegionId = price.Id.RegionId; Id.OfferId = (ulong)base.GetHashCode(); PriceId = price.Id.PriceId; Price = price; Cost = cost; }
protected bool Equals(OfferComposedId other) { return(OfferId == other.OfferId && RegionId == other.RegionId); }