public void ToStorableEvent_restores_Id_from_metadata() { Event e = new Annotated <CustomerAccount>("hi"); e.Metadata.AbsoluteSequenceNumber = 123; e.ToStorableEvent().Id.Should().Be(123); }
public void ToStorableEvent_restores_Id_from_metadata() { Event e = new Annotated<CustomerAccount>("hi"); e.Metadata.AbsoluteSequenceNumber = 123; e.ToStorableEvent().Id.Should().Be(123); }
public void ToStorableEvent_does_not_throw_when_actor_is_null() { Event e = new Annotated <CustomerAccount>("hi"); e.SetActor((string)null); Action toStorableEvent = () => e.ToStorableEvent(); toStorableEvent.ShouldNotThrow(); }
public void ToStorableEvent_does_not_throw_when_actor_is_null() { Event e = new Annotated<CustomerAccount>("hi"); e.SetActor((string) null); Action toStorableEvent = () => e.ToStorableEvent(); toStorableEvent.ShouldNotThrow(); }