private void AssertNameReference(string ruleScript, string expectedAppName)
        {
            var reference = RulesScriptParser.FindAppReference(ruleScript);

            Assert.IsNotNull(reference);
            Assert.AreEqual(expectedAppName, reference.ClientName);
        }
        private void AssertIdReference(string ruleScript, string expectedAppId)
        {
            var rule = new Rule()
            {
                Script = ruleScript
            };
            var reference = RulesScriptParser.FindAppReference(ruleScript);

            Assert.IsNotNull(reference);
            Assert.AreEqual(expectedAppId, reference.ClientId);
        }