Exemplo n.º 1
0
        public void GetUserPosts_Test()
        {
            IPerson <Person> pDB = new PersonData();
            var userJournals     = pDB.GetUserPosts(1);

            foreach (var item in userJournals)
            {
                Console.WriteLine(item.Title);
                //if (item is Person)
                //{
                //    var i = (Person)item;
                //    Console.WriteLine(i.FirstName);
                //}
                //if (item is Journal)
                //{
                //    var i = (Journal)item;
                //    Console.WriteLine(i.Title);
                //}
            }
        }