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