コード例 #1
0
        public void TestCheckUrlHasNoPermission3()
        {
            var stub = CreateStub();

            var authorizationHandler = new AuthorizationHandler(stub);
            var result = authorizationHandler.CheckUrl("1", "/api/TEST/abc?c=2", null, null);

            Assert.IsFalse(result);
        }
コード例 #2
0
        public void TestCheckUrlHasPermission2()
        {
            var stub = CreateStub();

            var authorizationHandler = new AuthorizationHandler(stub);
            var result = authorizationHandler.CheckUrl("1", "/api/Tns/abc?a=23", null, null);

            Assert.IsTrue(result);
        }