Esempio n. 1
0
        private bool DoesContactTypeExist(NationBuilderSession session, ContactType value)
        {
            foreach (var contactType in session.GetContactTypeResults())
            {
                if (value.Equals(contactType))
                {
                    Assert.AreEqual(value.id, contactType.id);
                    Assert.AreEqual(value.name, contactType.name);

                    return(true);
                }
            }

            return(false);
        }