public void SetUp() { theRepository = EntityRepository.InMemory(); theHash = new PasswordHash(); theMembership = new MembershipRepository<User>(theRepository, theHash); }
public void see_it_in_action() { var hash = new PasswordHash(); var password = "******"; for (int i = 0; i < 50; i++) { Debug.WriteLine(hash.CreateHash(password)); } hash.CreateHash(password).ShouldEqual(hash.CreateHash(password)); hash.CreateHash(password).ShouldEqual(hash.CreateHash(password)); hash.CreateHash(password).ShouldEqual(hash.CreateHash(password)); hash.CreateHash(password).ShouldEqual(hash.CreateHash(password)); hash.CreateHash(password).ShouldNotEqual(password); }