/// <summary> /// Subscribes the user to the auction. /// </summary> /// <param name="auctioneer">The auction's auctioneer.</param> public void Subscribe(Auctioneer auctioneer) { Registration = auctioneer.Subscribe(this); }
/// <summary> /// Sets the new bid. Notifies the auctioneer. /// </summary> /// <param name="bid">Bidders bid</param> /// <param name="auctioneer">Auctioneer to notify</param> public void GiveNewBid(double bid, Auctioneer auctioneer) { Bid = bid; NotifyAuctioneer(auctioneer); }
/// <summary> /// Notifies the auctioneer to validate new bid. /// </summary> /// <param name="auctioneer">Auctioneer to notify</param> public void NotifyAuctioneer(Auctioneer auctioneer) { auctioneer.ValidateBid(this); }
/// <summary> /// Subscribe to an auctioneer's auction /// </summary> /// <param name="auctioneer">The auctioneer to subscribe to</param> public virtual void Subscribe(Auctioneer auctioneer) { unsubscriber = auctioneer.Subscribe(this); auctioneer.CatchUp(this); }