public void GetAvatarUrl_ShouldReturnUrlWithEmailAddressMd5ValueAndCustomSize() { var url = _service.GetAvatarUrl("*****@*****.**", 200); var md5 = new FormsAuthenticationBasedMd5Generator().GenerateHashValue("*****@*****.**").ToLower(); Assert.That(url, Is.EqualTo(string.Format("http://www.gravatar.com/avatar/{0}?s=200", md5))); }
public void SetUp() { hashGenerator = new FormsAuthenticationBasedMd5Generator(); }