public void HashPassword_Should_Return_Different_HashedValues_For_The_Same_Value_Computed_Twice()
        {
            var rg  = new RandomGenerators();
            var phs = new PasswordHashingSvc(rg.Generate512BitKey());

            const string password      = "******";
            var          hashedResult1 = phs.HashPassword(password);
            var          hashedResult2 = phs.HashPassword(password);

            Assert.AreNotEqual(hashedResult1.Value.HashedPassword, hashedResult2.Value.HashedPassword);
        }
        public void HashPassword_Should_Return_Success_And_PasswordHashingData_Object()
        {
            var rg  = new RandomGenerators();
            var phs = new PasswordHashingSvc(rg.Generate512BitKey());

            const string password = "******";
            var          hashed   = phs.HashPassword(password);

            Assert.IsTrue(hashed.IsSuccessful);
            Assert.AreEqual(hashed.Value.HashedPassword.Length, 128);
        }