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