/// <summary>
        /// Test Find using the Query class
        /// </summary>
        private void Step_30_TestFindByQuery_Generated()
        {
            using (TransactionManager tm = CreateTransaction())
            {
                //Insert Mock Instance
                User mock   = CreateMockInstance(tm);
                bool result = DataRepository.UserProvider.Insert(tm, mock);

                Assert.IsTrue(result, "Could Not Test FindByQuery, Insert Failed");

                UserQuery query = new UserQuery();

                query.AppendEquals(UserColumn.Id, mock.Id.ToString());
                if (mock.Name != null)
                {
                    query.AppendEquals(UserColumn.Name, mock.Name.ToString());
                }
                if (mock.FullName != null)
                {
                    query.AppendEquals(UserColumn.FullName, mock.FullName.ToString());
                }
                if (mock.Passw != null)
                {
                    query.AppendEquals(UserColumn.Passw, mock.Passw.ToString());
                }
                if (mock.Mright != null)
                {
                    query.AppendEquals(UserColumn.Mright, mock.Mright.ToString());
                }
                if (mock.Rpright != null)
                {
                    query.AppendEquals(UserColumn.Rpright, mock.Rpright.ToString());
                }
                if (mock.Groups != null)
                {
                    query.AppendEquals(UserColumn.Groups, mock.Groups.ToString());
                }
                if (mock.Status != null)
                {
                    query.AppendEquals(UserColumn.Status, mock.Status.ToString());
                }

                TList <User> results = DataRepository.UserProvider.Find(tm, query);

                Assert.IsTrue(results.Count == 1, "Find is not working correctly.  Failed to find the mock instance");
            }
        }