public void AttachItemAddsItToLocalCollection() { var sut = new StubDbSet <TestEntity>(); var e = new TestEntity(Guid.NewGuid(), "E1"); sut.Attach(e); Assert.Same(e, sut.Local[0]); }
public void AttachItemAddsItToLocalCollection() { var sut = new StubDbSet<TestEntity>(); var e = new TestEntity(Guid.NewGuid(), "E1"); sut.Attach(e); Assert.Same(e, sut.Local[0]); }