public void GetAllSateShouldBeUnchanged() { var repository = new EfRepository <Contact, string>(dbContext); var firstContact = repository.GetAll().First(); dbContext.Entry(firstContact).State.ShouldBe(EntityState.Unchanged); }