示例#1
0
 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;
 }
示例#3
0
 private bool BidIsValid(Interested interested)
 {
     return((State == AuctionState.InProgress) &&
            (interested != _lastInterested));
 }