public void GivenACustomFieldCategory_WhenUpdate_ThenContextSetsModified()
        {
            var expected = new CustomFieldCategory { Id = 1 };

            Target.Update(expected);

            MockContext.AssertWasCalled(m => m.SetModified(expected));
        }
        public void GivenACustomFieldCategory_WhenRemove_ThenRemoveFromContext()
        {
            var item = new CustomFieldCategory { Id = 1 };

            Target.Remove(item);

            MockDbSet.AssertWasCalled(m => m.Remove(item));
        }
        public void GivenACustomFieldCategory_WhenAdd_ThenAddToContext()
        {
            var expected = new CustomFieldCategory { Id = 1 };

            Target.Add(expected);

            MockDbSet.AssertWasCalled(m => m.Add(expected));
        }
 public void Update(CustomFieldCategory item)
 {
     Context.SetModified(item);
 }
 public void Remove(CustomFieldCategory item)
 {
     Context.CustomFieldCategories.Remove(item);
 }
 public void Add(CustomFieldCategory item)
 {
     Context.CustomFieldCategories.Add(item);
 }