Exemplo n.º 1
0
 public void ReceiveBid(Interested client, double value)
 {
     if (NewBidIsAccepted(client))
     {
         _bids.Add(new Bid(client, value));
         _lastClient = client;
     }
 }
Exemplo n.º 2
0
 private bool NewBidIsAccepted(Interested client)
 {
     return(State == AuctionState.AuctionOnGoing && client != _lastClient);
 }