public void ReceiveBid(Interested interested, double amount) { if (BidIsValid(interested)) { Bids.Add(new Bid(interested, amount)); _lastInterested = interested; } }
public Bid(Interested interested, double amount) { VerifyIfBidIsValid(amount); Interested = interested; Amount = amount; }
private bool BidIsValid(Interested interested) { return((State == AuctionState.InProgress) && (interested != _lastInterested)); }