コード例 #1
0
        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);
        }
コード例 #2
0
 public void Query_Ctor_SetsEmailAddressProperty_UsingStringArg()
 {
     var emailAddress = FakeData.Email();
     var query = new HashedEmailValueBy(emailAddress);
     query.EmailAddress.ShouldEqual(emailAddress);
 }