def __init__(self): py_vmomi_service = pyVmomiService(SmartConnect, Disconnect) cloudshell_data_retriever_service = CloudshellDataRetrieverService() resource_connection_details_retriever = ResourceConnectionDetailsRetriever( cloudshell_data_retriever_service) network_adapter_retriever_command = NetworkAdaptersRetrieverCommand( py_vmomi_service, cloudshell_data_retriever_service, resource_connection_details_retriever) destroy_virtual_machine_command = DestroyVirtualMachineCommand( py_vmomi_service, cloudshell_data_retriever_service) deploy_from_template_command = DeployFromTemplateCommand( py_vmomi_service, cloudshell_data_retriever_service, resource_connection_details_retriever) self.commandExecuterService = CommandExecuterService( py_vmomi_service, network_adapter_retriever_command, destroy_virtual_machine_command, deploy_from_template_command)
def setUp(self): self.csRetrieverService = CloudshellDataRetrieverService()