Dictionary<Type,IEnumerable<Type>> GetValidatorsFor(Type commandType, Dictionary<Type, List<Type>> registeredTypes)
{
var typesOnCommand = GetTypesFromCommand(commandType).ToList();
var validatorTypes = new Dictionary<Type, IEnumerable<Type>>();
foreach (var typeToBeValidated in typesOnCommand)
{
if (registeredTypes.ContainsKey(typeToBeValidated))
validatorTypes.Add(typeToBeValidated, registeredTypes[typeToBeValidated]);
}
return validatorTypes;
}