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