public void Can_not_be_constructed_When_last_changed_takes_presence_before_created() { var ts = DateTime.UtcNow; Action failing = () => RillDetails.From( RillReference.New("test"), Sequence.First, Timestamp.From(ts), Timestamp.From(ts.AddMilliseconds(-1))); failing.Should() .ThrowExactly <ArgumentException>() .WithMessage("Last changed can not take presence before Created timestamp."); }
internal RillDetails ToDetails() => RillDetails.From( RillReference.From(Name, Id), Rill.Sequence.From(Sequence), Timestamp.From(CreatedAt.UtcDateTime), Timestamp.From(LastChangedAt.UtcDateTime));