Beispiel #1
0
 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;
 }
Beispiel #2
0
 public Offer(Offer offer, decimal cost)
 {
     Clone(offer);
     Id         = new OfferComposedId();
     Id.OfferId = offer.Id.OfferId++;
     Price      = offer.Price;
     Cost       = cost;
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 protected bool Equals(OfferComposedId other)
 {
     return(OfferId == other.OfferId && RegionId == other.RegionId);
 }