Exemple #1
0
        public void GetHashFunction_HS512_FunctionHasBeenRegistered_ReturnsFunction()
        {
            Func <string, string, string> hashFunc = (input, key) => input + key;

            JwtSettings.RegisterHashFunction("HS512", hashFunc);

            var hashFunction = JwtSettings.GetHashFunction("HS512");

            hashFunction.ShouldBe(hashFunc);
        }