static void TestUpdateCatalogItem()
        {
            PrintTitle("Testing UpdateCatalogItem()");
            Console.WriteLine("Change RFA's Location to http://www.rfa.com/mandarin/rss");
            CatalogItem item = FoeServerCatalog.GetCatalogItem("RFACHINESE");

            item.Location = "http://www.rfa.com/mandarin/rss";
            FoeServerCatalog.UpdateCatalogItem(item);
            Console.WriteLine("Update completed.");
        }
        static void TestGetCatalogItem()
        {
            PrintTitle("Testing GetCatalogItem()");

            // get RFACHINESE
            Console.WriteLine("Getting RFACHINESE...");
            CatalogItem item = FoeServerCatalog.GetCatalogItem("RFACHINESE");

            if (item == null)
            {
                Console.WriteLine("Catalog item not found.");
            }
            else
            {
                Console.WriteLine();
                Console.WriteLine("Code:        " + item.Code);
                Console.WriteLine("ContentType: " + item.ContentType);
                Console.WriteLine("Description: " + item.Description);
                Console.WriteLine("Location:    " + item.Location);
            }

            // get a non-existent item
            Console.WriteLine("Getting a non-existing item 'SOMETHING'...");
            item = FoeServerCatalog.GetCatalogItem("SOMETHING");

            if (item == null)
            {
                Console.WriteLine("Catalog item not found.");
            }
            else
            {
                Console.WriteLine();
                Console.WriteLine("Code:        " + item.Code);
                Console.WriteLine("ContentType: " + item.ContentType);
                Console.WriteLine("Description: " + item.Description);
                Console.WriteLine("Location:    " + item.Location);
            }
        }