From 3ce31ebf647071d10bc79f2414f253c48e91703c Mon Sep 17 00:00:00 2001 From: Denis-Cosmin Nutiu Date: Sun, 17 Nov 2019 16:52:43 +0200 Subject: [PATCH] Rename NucuCarSensorsCommandLine.cs to SensorsCommandLine.cs --- NucuCar.TestClient/Program.cs | 6 +++--- ...NucuCarSensorsCommandLine.cs => SensorsCommandLine.cs} | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) rename NucuCar.TestClient/{NucuCarSensorsCommandLine.cs => SensorsCommandLine.cs} (88%) diff --git a/NucuCar.TestClient/Program.cs b/NucuCar.TestClient/Program.cs index aa362e0..871d76f 100644 --- a/NucuCar.TestClient/Program.cs +++ b/NucuCar.TestClient/Program.cs @@ -1,16 +1,16 @@ using System; using System.Collections.Generic; using CommandLine; -using static NucuCar.TestClient.NucuCarSensorsCommandLine; +using static NucuCar.TestClient.SensorsCommandLine; namespace NucuCar.TestClient { - class Program + internal class Program { // ReSharper disable once ArrangeTypeMemberModifiers static void Main(string[] args) { - Parser.Default.ParseArguments(args) + Parser.Default.ParseArguments(args) .WithParsed(opts => { RunSensorsTestCommand(opts).GetAwaiter().GetResult(); }) .WithNotParsed(HandleParseError); } diff --git a/NucuCar.TestClient/NucuCarSensorsCommandLine.cs b/NucuCar.TestClient/SensorsCommandLine.cs similarity index 88% rename from NucuCar.TestClient/NucuCarSensorsCommandLine.cs rename to NucuCar.TestClient/SensorsCommandLine.cs index 1e55b5c..f762659 100644 --- a/NucuCar.TestClient/NucuCarSensorsCommandLine.cs +++ b/NucuCar.TestClient/SensorsCommandLine.cs @@ -9,20 +9,20 @@ using NucuCarSensorsProto; namespace NucuCar.TestClient { [Verb("sensors", HelpText = "Test the gRPC sensors services.")] - public class NucuCarSensorsCommandLineOptions + public class SensorsCommandLineOptions { [Option('u', "url", Required = false, HelpText = "The url and port of the gRPC server.", Default = "https://localhost:8000")] public string GrpcServiceAddress { get; set; } } - public class NucuCarSensorsCommandLine + public class SensorsCommandLine { public string GrpcServiceAddress { get; set; } - public static async Task RunSensorsTestCommand(NucuCarSensorsCommandLineOptions options) + public static async Task RunSensorsTestCommand(SensorsCommandLineOptions options) { - var sensorsCommandLine = new NucuCarSensorsCommandLine(); + var sensorsCommandLine = new SensorsCommandLine(); sensorsCommandLine.GrpcServiceAddress = options.GrpcServiceAddress; await sensorsCommandLine.EnvironmentSensorGrpcServiceTest();