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); }
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); }