public override bool SendNotifications(Auction auction) { if (OffHours == null) { return(false); } if (OffHours.IsOffHours()) { AuctionLogger.Log(auction.Seller.UserName + "," + auction.HighestBidder.UserName + "," + auction.ItemDesc + "," + auction.CurrentPrice.ToString() + "," + auction.BuyerAmount.ToString() + "," + auction.SellerAmount.ToString()); } return(true); }
public LogCarSale(AuctionLogger auctionLogger) { this.AuctionLogger = auctionLogger; }
public LogLargeSale(AuctionLogger auctionLogger) { this.AuctionLogger = auctionLogger; }
public LogOffHours(AuctionLogger auctionLogger, Hours offHours) { AuctionLogger = auctionLogger; OffHours = offHours; }