public static Guid EventId(this EnvelopeHeaders headers)
 {
     return(headers.GetGuid(CommonHeaders.EventId));
 }
 public static Instant Timestamp(this EnvelopeHeaders headers)
 {
     return(headers.GetInstant(CommonHeaders.Timestamp));
 }
 public static long EventStreamNumber(this EnvelopeHeaders headers)
 {
     return(headers.GetLong(CommonHeaders.EventStreamNumber));
 }
 public static Guid AggregateId(this EnvelopeHeaders headers)
 {
     return(headers.GetGuid(CommonHeaders.AggregateId));
 }
Beispiel #5
0
 public static DomainId AggregateId(this EnvelopeHeaders headers)
 {
     return(DomainId.Create(headers.GetString(CommonHeaders.AggregateId)));
 }
 public static string EventPosition(this EnvelopeHeaders headers)
 {
     return(headers.GetString(CommonHeaders.EventNumber));
 }
Beispiel #7
0
 public static Instant Timestamp(this EnvelopeHeaders headers)
 {
     return(headers[CommonHeaders.Timestamp].ToInstant(CultureInfo.InvariantCulture));
 }
Beispiel #8
0
        public void Should_create_headers()
        {
            var headers = new EnvelopeHeaders();

            Assert.Empty(headers);
        }
Beispiel #9
0
 public static Guid EventId(this EnvelopeHeaders headers)
 {
     return(headers[CommonHeaders.EventId].ToGuid(CultureInfo.InvariantCulture));
 }
Beispiel #10
0
 public static long EventStreamNumber(this EnvelopeHeaders headers)
 {
     return(headers[CommonHeaders.EventStreamNumber].ToInt64(CultureInfo.InvariantCulture));
 }
Beispiel #11
0
        public void Should_create_headers_with_null_properties()
        {
            var headers = new EnvelopeHeaders(null);

            Assert.Equal(0, headers.Count);
        }
Beispiel #12
0
        public void Should_create_headers()
        {
            var headers = new EnvelopeHeaders();

            Assert.Equal(0, headers.Count);
        }
 public static bool Restored(this EnvelopeHeaders headers)
 {
     return(headers.GetBoolean(CommonHeaders.Restored));
 }