public void NewPersonWithIntAsIdIsTransient() { var person = new PersonWithIntAsId(); Assert.True(person.IsTransient()); //person.IsTransient().Should().BeTrue(); }
public void PersonWithIntAsIdWithValueIsNotTransient() { var person = new PersonWithIntAsId { Id = 4 }; person.IsTransient().Should().BeFalse(); }
public void SetIdentitySetANonTransientEntity() { //Arrange var entity = new PersonWithIntAsId { Id = 1 }; //Assert Assert.False(entity.IsTransient()); }
public void NewPersonWithIntAsIdIsTransient() { var person = new PersonWithIntAsId(); person.IsTransient().Should().BeTrue(); }