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); }
private static NonEventSourcedCommandTarget CreateCommandTarget() { var target = new NonEventSourcedCommandTarget(Any.Word()); Save(target).Wait(); return(target); }