public void NewPersonWithGuidAsIdIsTransient() { var person = new PersonWithGuidAsId(); person.Id.Should().Be(Guid.Empty); person.IsTransient().Should().BeTrue(); }
public void PersonWithGuidAsIdWithValueIsNotTransient() { var person = new PersonWithGuidAsId { Id = Guid.NewGuid() }; person.IsTransient().Should().BeFalse(); }
public void NewPersonWithGuidAsIdIsTransient() { var person = new PersonWithGuidAsId(); Assert.Equal(Guid.Empty, person.Id); Assert.True(person.IsTransient()); //person.Id.Should().Be(Guid.Empty); //person.IsTransient().Should().BeTrue(); }