public void With_valid_entity_returns_the_added_entity() { var set = new InternalDbSet <FakeEntity>(new Mock <InternalSetForMock <FakeEntity> >().Object); var entity = new FakeEntity(); var retVal = set.Remove(entity); Assert.Same(entity, retVal); }
public override EntityEntry <TEntity> Remove(TEntity entity) => _DbSet.Remove(entity);
public void Non_Generic_DbSet_Remove_returns_the_added_entity() { var set = new InternalDbSet<FakeEntity>(new Mock<InternalSetForMock<FakeEntity>>().Object); var entity = new FakeEntity(); var retVal = set.Remove(entity); Assert.Same(entity, retVal); }