예제 #1
0
        public void TestNotificationEmailForSellerNoBids()
        {
            (Users users, User scott, User bob, Auction auction) = AuctionTests.CreateAuctionWorld();
            auction.StartAuction();

            Approvals.VerifyAll(auction.GetClosingEmailNotifications());
        }
예제 #2
0
 public void TestNotifySellerNoBidders()
 {
     PostOffice.GetInstance().Clear();
     (Users users, User scott, User bob, Auction auction) = AuctionTests.CreateAuctionWorld();
     auction.StartAuction();
     auction.EndAuction();
     Approvals.Verify(PostOffice.GetInstance().FindEmail(scott.Email, auction.ItemDescription));
 }
예제 #3
0
 public void TestNotifySellerThatTheItemSold()
 {
     //create auction world
     //start an auction
     //bob bids $5
     //verify closing notification emails
     (Users users, User scott, User bob, Auction auction) = AuctionTests.CreateAuctionWorld();
     auction.StartAuction();
     auction.Bid(bob, 5);
     Approvals.VerifyAll(auction.GetClosingEmailNotifications());
 }