public void Hash_WhitespacePassword_ShouldThrowArgumentException()
        {
            // Arrange
            var md5PasswordHasher = new Md5PasswordHasher();

            // Act
            // Assert
            Exception ex = Assert.ThrowsAny <ArgumentException>(() => md5PasswordHasher.Hash("*****@*****.**", "   "));
        }
        public void Hash_WhitespaceLogin_ShouldThrowArgumentException()
        {
            // Arrange
            var md5PasswordHasher = new Md5PasswordHasher();

            // Act
            // Assert
            Exception ex = Assert.ThrowsAny <ArgumentException>(() => md5PasswordHasher.Hash("   ", "Secret123"));
        }
        public void Hash_PassedLoginPassword_ShouldReturnCalculatedHash()
        {
            // Arrange
            string expectedHash      = CalculateHash("[email protected]");
            var    md5PasswordHasher = new Md5PasswordHasher();

            // Act
            var result = md5PasswordHasher.Hash("*****@*****.**", "Secret123");

            // Assert
            Assert.Equal(expectedHash, result);
        }