public void When_taking_uncommitted_events_then_original_version_should_equal_version()
        {
            var aggregate = new Aggregate("id");
            aggregate.Command();

            ((IAggregate)aggregate).TakeUncommittedEvents();
            ((IAggregate)aggregate).OriginalVersion.Should().Be(1);
        }
        public void When_applying_command_then_version_should_be_incremented()
        {
            var aggregate = new Aggregate("id");
            aggregate.Command();

            ((IAggregate)aggregate).OriginalVersion.Should().Be(0);
            aggregate.Version.Should().Be(1);
        }
        public void Should_not_require_an_explicit_handler()
        {
            var aggregate = new Aggregate("id");

            aggregate.Command();

            aggregate.Version.Should().Be(1);
        }
        public void Should_not_require_an_explicit_handler()
        {
            var aggregate = new Aggregate("id");

            aggregate.Command();

            aggregate.Version.Should().Be(1);
        }
        public void When_taking_uncommitted_events_then_original_version_should_equal_version()
        {
            var aggregate = new Aggregate("id");

            aggregate.Command();

            ((IAggregate)aggregate).TakeUncommittedEvents();
            ((IAggregate)aggregate).OriginalVersion.Should().Be(1);
        }
        public void When_applying_command_then_version_should_be_incremented()
        {
            var aggregate = new Aggregate("id");

            aggregate.Command();

            ((IAggregate)aggregate).OriginalVersion.Should().Be(0);
            aggregate.Version.Should().Be(1);
        }