コード例 #1
0
 public void WhenIOpenTheConfirmationEMailAndClickTheConfirmationLink()
 {
     Client = EmailClient.ConnectToGmail(User.Login, User.Password);
     for (var i = 0;; i++)
     {
         ConfirmationLink = Client.GetConfirmationLink();
         if (ConfirmationLink != null)
         {
             WebBrowser.Current.Navigate().GoToUrl(ConfirmationLink);
             break;
         }
         if(i >=60) Assert.Fail("timeout");
         Thread.Sleep(1000);
     }
 }