public void TestToAddress()
 {
     var user = CreateUser();
     var email = new ForgotUserNameEmail(user);
     Assert.AreEqual(user.Email, email.ToAddress);
 }
 public void TestTokenData()
 {
     var user = CreateUser();
     var email = new ForgotUserNameEmail(user);
     Assert.IsNotNull(email.TokenData);
 }
 public void TestTemplateKey()
 {
     var user = CreateUser();
     var email = new ForgotUserNameEmail(user);
     Assert.AreEqual(EmailTemplateKeys.ForgotUserName, email.TemplateKey);
 }