public bool PlugIn(PowerRelated powerRelated, PowerGrid powerGrid) { if (powerRelated == null) { throw new ArgumentNullException("powerRelated"); } return(powerGrid != null && powerGrid.PlugIn(powerRelated)); }
public void PlugInArgumentNullException() { powerGrid.PlugIn(null); }