Newer
Older
Compile the project by running `dotnet build`
Use the resulting .dll files in your project to access control component feature of this library
## ControlComponent
## OperationMode
Inheriting the OperationModeBase class allows you to override the execution state method to inject your process logic.
# Contribution
1. Prepare VSCode https://code.visualstudio.com/docs/languages/dotnet
[Project Structure](https://docs.microsoft.com/de-de/dotnet/core/porting/project-structure)
[dotnet cli](https://docs.microsoft.com/de-de/dotnet/core/tools/dotnet-new)
Run the following command to execute tests ([dotnet test reference](https://docs.microsoft.com/de-de/dotnet/core/tools/dotnet-test)).
```
dotnet test
```
Using the following command creates a TestResult folder with the coverage results ([coverage reference](https://docs.microsoft.com/de-de/dotnet/core/testing/unit-testing-code-coverage?tabs=windows#integrate-with-net-test)):
```
dotnet test --collect:"XPlat Code Coverage"
```
install reportgenerator to generate a test report. `dotnet tool install -g dotnet-reportgenerator-globaltool`
Run the following command (with the correct result id) to create a "coveragereport" folder with an index.html file to present the coverage results:
```
reportgenerator -reports:.\tests\ControlComponents.Core.Tests\TestResults\58238ace-ffed-4f17-8afa-d9a60792f957\coverage.cobertura.xml -targetdir:coveragereport -reporttypes:Html
```
Open the index.html file in your browser to access the results.
1. Moq to provide Mock and Stub functionality
2. coverlet.collector to provide test coverage plugin
https://github.com/coverlet-coverage/coverlet/blob/master/README.md
https://docs.microsoft.com/de-de/dotnet/core/testing/unit-testing-code-coverage?tabs=windows
[assembly:InternalsVisibleTo("ControlComponent.Tests")]
https://github.com/NLog/NLog/wiki/Configure-from-code
Changed TargetFramework to netstandard2.0 to enable unity3d support
https://docs.unity3d.com/2019.3/Documentation/Manual/dotnetProfileSupport.html
https://docs.microsoft.com/de-de/dotnet/standard/frameworks
https://docs.microsoft.com/de-de/dotnet/standard/net-standard