public void UpdateCategoryTest() { _storage.CreateCategory(_category); _category.Name = "New Name"; _category.Description = "New Description"; _storage.UpdateCategory(_category); var firstCategory = _storage.GetAllCategories().First(); Assert.AreEqual(_category.Name, firstCategory.Name); Assert.AreEqual(_category.Description, firstCategory.Description); }
public void UpdateCategory(ICategory category) { _storage.UpdateCategory(category); _isDirty = true; }