/// <summary>
 /// Gets the machine corresponding to the given machine name.
 /// </summary>
 /// <param name="machineName">Name of the machine to find.</param>
 /// <returns>The machine matching the given name.</returns>
 public Machine GetMachineByName(string machineName)
 {
     return(Machines.Count == 0
 ? null
 : Machines.Find(m => string.Compare(m.Name, machineName, StringComparison.OrdinalIgnoreCase) == 0));
 }
 /// <summary>
 /// Gets the machine corresponding to the given machine ID.
 /// </summary>
 /// <param name="id">Id of the machine to find.</param>
 /// <returns>The machine matching the given ID.</returns>
 public Machine GetMachineById(string id)
 {
     return(Machines.Count == 0 ? null : Machines.Find(m => m.MachineId == id));
 }