Esempio n. 1
0
 protected static EventData CreateLinkToEvent(string originalStreamName, StreamRevision originalRevision)
 => new EventData(Uuid.NewUuid(), SystemEventTypes.LinkTo,
                  Helper.UTF8NoBom.GetBytes($"{originalRevision.ToInt64()}@{originalStreamName}"));
Esempio n. 2
0
 public void ToInt64ExpectedResult(long expected, StreamRevision value)
 => Assert.Equal(expected, value.ToInt64());