Beispiel #1
0
        public WinningBidSnapshot GetSnapshot()
        {
            var snapshot = new WinningBidSnapshot();

            snapshot.BiddersId         = this.Bidder;
            snapshot.BiddersMaximumBid = this.MaximumBid.GetSnapshot().Value;
            snapshot.CurrentPrice      = this.CurrentAuctionPrice.Amount.GetSnapshot().Value;
            snapshot.TimeOfBid         = this.TimeOfBid;

            return(snapshot);
        }
Beispiel #2
0
 public static WinningBid CreateFrom(WinningBidSnapshot bidSnapShot)
 {
     return(new WinningBid(bidSnapShot.BiddersId, new Money(bidSnapShot.BiddersMaximumBid), new Money(bidSnapShot.CurrentPrice), bidSnapShot.TimeOfBid));
 }