示例#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);
        }