public void TestOffHoursShunt() { var offHours = HoursFactory.GetHours(true); Auction auction = CreateDefaultAuction(); auction.OffHours = new OffHoursShunt(); auction.OnStart(); auction.Bid(CreateDefaultBidder(), 10000M, out Auction.BidStatus bidStatus); auction.OnClose(); string expectedLog = CreateAuctionLog(auction); Assert.IsTrue(NotificationFactory.OffHoursLogger.FindMessage(expectedLog), "Expected auction log: " + expectedLog); }
public AuctionManager() : this(HoursFactory.GetHours(false)) { }