Exemplo n.º 1
0
        public void ToStorableEvent_restores_Id_from_metadata()
        {
            Event e = new Annotated <CustomerAccount>("hi");

            e.Metadata.AbsoluteSequenceNumber = 123;

            e.ToStorableEvent().Id.Should().Be(123);
        }
Exemplo n.º 2
0
        public void ToStorableEvent_restores_Id_from_metadata()
        {
            Event e = new Annotated<CustomerAccount>("hi");

            e.Metadata.AbsoluteSequenceNumber = 123;

            e.ToStorableEvent().Id.Should().Be(123);
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        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();
        }