public void Category_Create_Succeed()
        {
            string categoryDescription = "In Action Series";

            Category category = new Category(categoryDescription);

            Assert.Equal<string>(category.Description, categoryDescription);
        }
Example #2
0
 /// <summary>
 /// Adds the category.
 /// </summary>
 /// <param name="category">The category.</param>
 public virtual void AddCategory(Category category)
 {
     if (Categories == null)
     {
         Categories = new List<Category>();
     }
     category.AddBookTitle(this);
     Categories.Add(category);
 }