public void GivenACustomFieldType_WhenUpdate_ThenContextSetsModified()
        {
            var expected = new CustomFieldType { Id = 1 };

            Target.Update(expected);

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

            Target.Remove(item);

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

            Target.Add(expected);

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