GetAllCategories() public method

Returns every blog category in the blog.
public GetAllCategories ( string blogId ) : IList
blogId string
return IList
        public void CanWritePostWithCategoryAndImportTheOutput()
        {
            CreateBlogAndSetupContext();

            // Shortcut to creating a blog post with a category.
            SubtextBlogMLProvider provider = new SubtextBlogMLProvider();
            provider.ConnectionString = Config.ConnectionString;
            BlogMLReader reader = BlogMLReader.Create(provider);
            Stream stream = UnitTestHelper.UnpackEmbeddedResource("BlogMl.SinglePostWithCategory.xml");
            reader.ReadBlog(stream);

            // Make sure we created a post with a category.
            IList<LinkCategory> categories = Links.GetCategories(CategoryType.PostCollection, ActiveFilter.ActiveOnly);
            Assert.AreEqual(2, categories.Count, "Expected two total categories to be created");
            IList<Entry> entries = Entries.GetRecentPosts(100, PostType.BlogPost, PostConfig.None, true);
            Assert.AreEqual(1, entries.Count, "Expected a single entry.");
            Assert.AreEqual("Category002", entries[0].Categories[0], "Expected the catgory to be 'Category002'");

            // Now export.
            provider = new SubtextBlogMLProvider();
            provider.ConnectionString = Config.ConnectionString;

            IList<BlogMLCategory> blogMLCategories = provider.GetAllCategories(Config.CurrentBlog.Id.ToString(CultureInfo.InvariantCulture));
            Assert.AreEqual(2, blogMLCategories.Count, "Expected to find two categories via the provider.");

            BlogMLWriter writer = BlogMLWriter.Create(provider);
            // TODO- BlogML 2.0
            //			writer.EmbedAttachments = false;
            MemoryStream memoryStream = new MemoryStream();

            using (XmlTextWriter xmlWriter = new XmlTextWriter(memoryStream, Encoding.UTF8))
            {
                writer.Write(xmlWriter);

                // Create a new blog.
                Assert.IsTrue(Config.CreateBlog("BlogML Import Unit Test Blog", "test", "test", Config.CurrentBlog.Host + "2", ""), "Could not create the blog for this test");
                UnitTestHelper.SetHttpContextWithBlogRequest(Config.CurrentBlog.Host + "2", "");
                Assert.IsTrue(Config.CurrentBlog.Host.EndsWith("2"), "Looks like we've cached our old blog.");

                // Now read it back in to a new blog.
                memoryStream.Position = 0;

                //Let's take a look at the export.
                StreamReader streamReader = new StreamReader(memoryStream);
                Console.WriteLine(streamReader.ReadToEnd());

                memoryStream.Position = 0;
                reader.ReadBlog(memoryStream);
            }

            IList<Entry> newEntries = Entries.GetRecentPosts(100, PostType.BlogPost, PostConfig.None, true);
            Assert.AreEqual(1, newEntries.Count, "Round trip failed to create the same number of entries.");
            Assert.AreEqual(1, newEntries[0].Categories.Count, "Expected one category for this entry.");
            Assert.AreEqual("Category002", newEntries[0].Categories[0], "Expected the catgory to be 'Category002'");
        }