public void TestWrongGrantType()
        {
            TokenContext context = new TokenContext
            {
                GrantType = Parameters.GrantTypeValues.ClientCredentials,
            };

            RefreshAccessTokenInspector inspector = new RefreshAccessTokenInspector();

            inspector.Inspect(context);
        }
        public void TestWrongGrantType()
        {
            TokenContext context = new TokenContext
            {
                GrantType = Parameters.GrantTypeValues.ClientCredentials,
            };

            RefreshAccessTokenInspector inspector = new RefreshAccessTokenInspector();

            inspector.Inspect(context);
        }
        public void TestValidContext()
        {
            TokenContext context = new TokenContext
            {
                GrantType    = Parameters.GrantTypeValues.RefreshToken,
                RefreshToken = "refresh",
                Scope        = new string[] { "create", "delete" }
            };

            RefreshAccessTokenInspector inspector = new RefreshAccessTokenInspector();

            inspector.Inspect(context);
        }
        public void TestValidContext()
        {
            TokenContext context = new TokenContext
            {
                GrantType = Parameters.GrantTypeValues.RefreshToken,
                RefreshToken = "refresh",
                Scope = new string[] { "create", "delete" }
            };

            RefreshAccessTokenInspector inspector = new RefreshAccessTokenInspector();

            inspector.Inspect(context);
        }