public void NotExistSubCategoryWithName() { DalBase.CreateDb(); CategoriesDal.AddCategory(subCategory); Assert.IsFalse(CategoriesDal.CategoryExistInBaseByName(subCategory.Name + "NotExist")); }
public void ExistSubCategoryWithName() { DalBase.CreateDb(); CategoriesDal.AddCategory(subCategory); Assert.IsTrue(CategoriesDal.CategoryExistInBaseByName(subCategory.Name)); }