Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
 public override EntityEntry <TEntity> Remove(TEntity entity) => _DbSet.Remove(entity);
Ejemplo n.º 3
0
        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);
        }