public async Task Of_T_Continuation_Function_Throws_Exception_When_Access_Is_Requested_And_Validation_Results_Are_Not_Empty()
        {
            var errors          = new ValidationResult[] { new ValidationResult("You shall not pass") };
            var executionResult = new ExecutionResult <string>();
            Func <Task <ExecutionResult <string> > > continuationFunc = async() => executionResult;

            var result = new CommandValidationResult <string>(errors, continuationFunc);

            var ex = await Assert.ThrowsAsync <InvalidOperationException>(() => result.CompleteCommandExecutionAsync());

            ex.Message.ShouldBe("Cannot complete command execution because validation was not successful.");
        }