A road map to perform the CRUD operations for a Category object.
상속: ICategoryService
        public void TestConstructorNotNullEquality()
        {
            Mock<ICategoryRepository> mock = new Mock<ICategoryRepository>();
            CategoryService cs = new CategoryService(mock.Object);

            Assert.IsNotNull(cs);
        }
        public void TestConstructorEquality()
        {
            Mock<ICategoryRepository> mock = new Mock<ICategoryRepository>();
            CategoryService cs = new CategoryService(mock.Object);

            Assert.AreSame(cs, cs);
        }
        public void TestGetNameEquality()
        {
            Mock<ICategoryRepository> mock = new Mock<ICategoryRepository>();
            CategoryService cs = new CategoryService(mock.Object);
            CategoryService cs1 = new CategoryService(mock.Object);

            Assert.AreEqual(cs.GetByName("Sarah"), cs1.GetByName("Sarah"));
        }
 public void TestCategoryServiceUpdateForNullReference()
 {
     CategoryService bs = new CategoryService(null);
     bs.Update(null);
 }
 public void TestCategoryServiceInsertrNullReference()
 {
     CategoryService bs = new CategoryService(null);
     bs.Insert(null);
 }
 public void TestCategoryServiceGetByNameForNullReference()
 {
     CategoryService bs = new CategoryService(null);
     bs.GetByName(null);
 }
 public void TestCategoryServiceEqualsForNullReference()
 {
     CategoryService bs = new CategoryService(null);
     bs.GetAll();
 }