public void Handler_HashesEmail_GravatarStyle(string emailAddress, string expectedHash) { var handler = new HandleHashedEmailValueByQuery(); var query = new HashedEmailValueBy(emailAddress); string result = handler.Handle(query).Result; result.ShouldEqual(expectedHash); }
public void Query_Ctor_SetsEmailAddressProperty_UsingStringArg() { var emailAddress = FakeData.Email(); var query = new HashedEmailValueBy(emailAddress); query.EmailAddress.ShouldEqual(emailAddress); }