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 TestMissingRefreshTokenContext()
        {
            TokenContext context = new TokenContext
            {
                GrantType = Parameters.GrantTypeValues.RefreshToken,
                Scope     = new string[] { "create", "delete" }
            };

            RefreshAccessTokenInspector inspector = new RefreshAccessTokenInspector();

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

            RefreshAccessTokenInspector inspector = new RefreshAccessTokenInspector();

            CommonAssertInspector(inspector, 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);
        }