예제 #1
0
        public async Task when_a_command_is_applied_directly_the_command_is_executed()
        {
            var target = new NonEventSourcedCommandTarget();
            await target.ApplyAsync(new TestCommand());

            target.CommandsEnacted.Should().HaveCount(1);
        }
예제 #2
0
        private static NonEventSourcedCommandTarget CreateCommandTarget()
        {
            var target = new NonEventSourcedCommandTarget(Any.Word());

            Save(target).Wait();
            return(target);
        }