public void SetUp()
 {
     _mailServer = new MailServer(TEST_MAIL_SERVER, CUSTOMER_PASSWORD);
     _mailServer.ClearMailBox(CUSTOMER_EMAIL_ADDRESS);
     _mailServer.ClearMailBox(PENNY_EMAIL_ADDRESS);
     _mailServer.ClearMailBox(DIFFERENT_CUSTOMER_EMAIL_ADDRESS);
     _application = new ApplicationRunner();
     _application.Start();
     _customer = new Customer(CUSTOMER_EMAIL_ADDRESS);
     _aDifferentCustomer = new Customer(DIFFERENT_CUSTOMER_EMAIL_ADDRESS);
 }
 public void HasReceivedOrderAcknowledgment()
 {
     var mailMessages = new MailServer(PennyEndToEndTest.TEST_MAIL_SERVER, PennyEndToEndTest.CUSTOMER_PASSWORD)
         .GetMailMessages(_customerEmailAddress, PennyEndToEndTest.CUSTOMER_PASSWORD);
     Assert.That(mailMessages.Count, Is.EqualTo(1), "Messages received") ;
 }