Exemplo n.º 1
0
        public void GetDynamicKeysExistTest()
        {
            OsPeopleRequest tag1 = new OsPeopleRequest(dynamicPeopleControl);
            OsPeopleRequest tag2 = new OsPeopleRequest(crossRefDynamicPeopleControl);

            string[] dynamicKeys = tag1.GetDynamicKeyDependencies();
            Assert.Greater(dynamicKeys.Length, 0);
        }
Exemplo n.º 2
0
        bool PeopleRequestTagHasDynamicKey(string source, string expectedKey)
        {
            OsPeopleRequest tag1 = new OsPeopleRequest(source);

            string[] dynamicKeys = tag1.GetDynamicKeyDependencies();
            bool     found       = ContainsDynamicKey(dynamicKeys, expectedKey);

            return(found);
        }