-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup error in serial sender program.cs
- Loading branch information
1 parent
9f45d5c
commit 7cc8096
Showing
12 changed files
with
317 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
SerialSender/SerialSender.Entities/Configuration/CommandLineOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Configuration | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class CommandLineOption | ||
{ | ||
public CommandLineOptionType OptionType { get; set; } | ||
public bool IsOperation { get; set; } | ||
public string Name { get; set; } = ""; | ||
public string ShortName { get; set; } = ""; | ||
public string Description { get; set; } = ""; | ||
public int MinimumNumberOfValues { get; set; } = 0; | ||
public int MaximumNumberOfValues { get; set; } = 0; | ||
} | ||
} | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Configuration | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class CommandLineOption | ||
{ | ||
public CommandLineOptionType OptionType { get; set; } | ||
public bool IsOperation { get; set; } | ||
public string Name { get; set; } = ""; | ||
public string ShortName { get; set; } = ""; | ||
public string Description { get; set; } = ""; | ||
public int MinimumNumberOfValues { get; set; } = 0; | ||
public int MaximumNumberOfValues { get; set; } = 0; | ||
} | ||
} |
40 changes: 20 additions & 20 deletions
40
SerialSender/SerialSender.Entities/Configuration/CommandLineOptionType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
namespace SerialSender.Entities.Configuration | ||
{ | ||
public enum CommandLineOptionType | ||
{ | ||
Unknown, | ||
Send, | ||
PortName, | ||
BaudRate, | ||
Parity, | ||
DataBits, | ||
StopBits, | ||
Handshake, | ||
BlockSize, | ||
BlockDelay, | ||
LineDelay, | ||
LineEnding, | ||
SendNewCommand, | ||
Verbose | ||
} | ||
} | ||
namespace SerialSender.Entities.Configuration | ||
{ | ||
public enum CommandLineOptionType | ||
{ | ||
Unknown, | ||
Send, | ||
PortName, | ||
BaudRate, | ||
Parity, | ||
DataBits, | ||
StopBits, | ||
Handshake, | ||
BlockSize, | ||
BlockDelay, | ||
LineDelay, | ||
LineEnding, | ||
SendNewCommand, | ||
Verbose | ||
} | ||
} |
22 changes: 11 additions & 11 deletions
22
SerialSender/SerialSender.Entities/Configuration/CommandLineOptionValue.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Configuration | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class CommandLineOptionValue | ||
{ | ||
public CommandLineOption Option { get; set; } | ||
public List<string> Values { get; private set; } = new(); | ||
} | ||
} | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Configuration | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class CommandLineOptionValue | ||
{ | ||
public CommandLineOption Option { get; set; } | ||
public List<string> Values { get; private set; } = new(); | ||
} | ||
} |
38 changes: 19 additions & 19 deletions
38
SerialSender/SerialSender.Entities/Exceptions/DuplicateOptionException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class DuplicateOptionException : Exception | ||
{ | ||
public DuplicateOptionException() | ||
{ | ||
} | ||
|
||
public DuplicateOptionException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public DuplicateOptionException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class DuplicateOptionException : Exception | ||
{ | ||
public DuplicateOptionException() | ||
{ | ||
} | ||
|
||
public DuplicateOptionException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public DuplicateOptionException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} |
38 changes: 19 additions & 19 deletions
38
SerialSender/SerialSender.Entities/Exceptions/MalformedCommandLineException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class MalformedCommandLineException : Exception | ||
{ | ||
public MalformedCommandLineException() | ||
{ | ||
} | ||
|
||
public MalformedCommandLineException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public MalformedCommandLineException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class MalformedCommandLineException : Exception | ||
{ | ||
public MalformedCommandLineException() | ||
{ | ||
} | ||
|
||
public MalformedCommandLineException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public MalformedCommandLineException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} |
42 changes: 21 additions & 21 deletions
42
SerialSender/SerialSender.Entities/Exceptions/MultipleOperationsException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class MultipleOperationsException : Exception | ||
{ | ||
public MultipleOperationsException() | ||
{ | ||
} | ||
|
||
public MultipleOperationsException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public MultipleOperationsException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class MultipleOperationsException : Exception | ||
{ | ||
public MultipleOperationsException() | ||
{ | ||
} | ||
|
||
public MultipleOperationsException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public MultipleOperationsException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} | ||
38 changes: 19 additions & 19 deletions
38
SerialSender/SerialSender.Entities/Exceptions/TooFewValuesException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class TooFewValuesException : Exception | ||
{ | ||
public TooFewValuesException() | ||
{ | ||
} | ||
|
||
public TooFewValuesException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public TooFewValuesException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class TooFewValuesException : Exception | ||
{ | ||
public TooFewValuesException() | ||
{ | ||
} | ||
|
||
public TooFewValuesException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public TooFewValuesException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} |
38 changes: 19 additions & 19 deletions
38
SerialSender/SerialSender.Entities/Exceptions/TooManyValuesException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class TooManyValuesException : Exception | ||
{ | ||
public TooManyValuesException() | ||
{ | ||
} | ||
|
||
public TooManyValuesException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public TooManyValuesException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class TooManyValuesException : Exception | ||
{ | ||
public TooManyValuesException() | ||
{ | ||
} | ||
|
||
public TooManyValuesException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public TooManyValuesException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} |
40 changes: 20 additions & 20 deletions
40
SerialSender/SerialSender.Entities/Exceptions/UnrecognisedCommandLineOptionException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class UnrecognisedCommandLineOptionException : Exception | ||
{ | ||
public UnrecognisedCommandLineOptionException() | ||
{ | ||
} | ||
|
||
public UnrecognisedCommandLineOptionException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public UnrecognisedCommandLineOptionException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SerialSender.Entities.Exceptions | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class UnrecognisedCommandLineOptionException : Exception | ||
{ | ||
public UnrecognisedCommandLineOptionException() | ||
{ | ||
} | ||
|
||
public UnrecognisedCommandLineOptionException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public UnrecognisedCommandLineOptionException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.