internal bool RemoveVirtualMachines() { var cmdlet = (RemoveEsxiVmCommand)Cmdlet; var virtualMachinesSelector = new VirtualMachinesSelector(); var virtualMachines = virtualMachinesSelector.GetMachines(cmdlet.Server, cmdlet.Id, cmdlet.Name, cmdlet.Path); var virtualMachinesProcessor = new VirtualMachinesProcessor(); return virtualMachinesProcessor.RemoveMachines(virtualMachines); }
internal IEnumerable<IEsxiVirtualMachine> GetVirtualMachines() { var cmdlet = (GetEsxiVmCommand)Cmdlet; var virtualMachinesSelector = new VirtualMachinesSelector(); return virtualMachinesSelector.GetMachines(cmdlet.Server, cmdlet.Id, cmdlet.Name, cmdlet.Path); }