Add MagentoConfiguration and a command to check validity of connection

What happens if MagentoConfiguration is null?