Browse Source

Fix parameter naming updated in error as part of refactor

tznind 8 months ago
parent
commit
9f1d0b3c2e

+ 1 - 1
Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs

@@ -4,7 +4,7 @@ internal class FakeMainLoop : IMainLoopDriver
 {
     public Action<ConsoleKeyInfo> MockKeyPressed;
 
-    public FakeMainLoop (IConsoleDriver IConsoleDriver = null)
+    public FakeMainLoop (IConsoleDriver consoleDriver = null)
     {
         // No implementation needed for FakeMainLoop
     }

+ 2 - 2
Terminal.Gui/ConsoleDrivers/NetDriver/NetEvents.cs

@@ -14,9 +14,9 @@ internal class NetEvents : IDisposable
 #if PROCESS_REQUEST
     bool _neededProcessRequest;
 #endif
-    public NetEvents (IConsoleDriver IConsoleDriver)
+    public NetEvents (IConsoleDriver consoleDriver)
     {
-        _consoleDriver = IConsoleDriver ?? throw new ArgumentNullException (nameof (IConsoleDriver));
+        _consoleDriver = consoleDriver ?? throw new ArgumentNullException (nameof (consoleDriver));
         _inputReadyCancellationTokenSource = new ();
 
         Task.Run (ProcessInputQueue, _inputReadyCancellationTokenSource.Token);

+ 4 - 4
Terminal.Gui/ConsoleDrivers/NetDriver/NetMainLoop.cs

@@ -25,15 +25,15 @@ internal class NetMainLoop : IMainLoopDriver
 
     /// <summary>Initializes the class with the console driver.</summary>
     /// <remarks>Passing a IConsoleDriver is provided to capture windows resizing.</remarks>
-    /// <param name="IConsoleDriver">The console driver used by this Net main loop.</param>
+    /// <param name="consoleDriver">The console driver used by this Net main loop.</param>
     /// <exception cref="ArgumentNullException"></exception>
-    public NetMainLoop (IConsoleDriver IConsoleDriver)
+    public NetMainLoop (IConsoleDriver consoleDriver)
     {
-        ArgumentNullException.ThrowIfNull (IConsoleDriver);
+        ArgumentNullException.ThrowIfNull (consoleDriver);
 
         if (!ConsoleDriver.RunningUnitTests)
         {
-            _netEvents = new (IConsoleDriver);
+            _netEvents = new (consoleDriver);
         }
     }
 

+ 3 - 3
Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsMainLoop.cs

@@ -29,13 +29,13 @@ internal class WindowsMainLoop : IMainLoopDriver
     private readonly CancellationTokenSource _inputHandlerTokenSource = new ();
     private MainLoop? _mainLoop;
 
-    public WindowsMainLoop (IConsoleDriver IConsoleDriver)
+    public WindowsMainLoop (IConsoleDriver consoleDriver)
     {
-        _consoleDriver = IConsoleDriver ?? throw new ArgumentNullException (nameof (IConsoleDriver));
+        _consoleDriver = consoleDriver ?? throw new ArgumentNullException (nameof (consoleDriver));
 
         if (!ConsoleDriver.RunningUnitTests)
         {
-            _winConsole = ((WindowsDriver)IConsoleDriver).WinConsole;
+            _winConsole = ((WindowsDriver)consoleDriver).WinConsole;
             _winConsole!._mainLoop = this;
         }
     }