Module which is used for getting the current time. This should be used instead of DateTime.(Utc)Now in order for the time to always be of the same kind and the code to be more easily testable.
$ dotnet add package AppBrix.TimeAppBrix is a way of thinking about and building scalable modular applications.
This framework is using the latest version of .NET.
AppBrix has been created with the following priorities:
# Clone project locally.
git clone git@github.com:MarinAtanasov/AppBrix.git
# Go to project root directory.
cd AppBrix
# Restore nuget dependencies and build the solution.
dotnet build
By default, tests are using MSTest, but NUnit and Xunit can be used instead.
dotnet test --filter "Category=Functional|TestCategory=Functional" --nologo --verbosity minimal
# You can add -Build to restore dependencies and build the solution.
# You can add -Release to use the Release configuration instead of Debug.
# Run functional tests (default). Add -Parallel for parallel execution.
./Test.ps1 -tests Functional # ./Test.ps1
# Run performance tests.
./Test.ps1 -tests Performance # ./Test.ps1 p
# Run all tests.
./Test.ps1 -tests All # ./Test.ps1 a
There are ready configuration for each test runner inside /Tests/Directory.Build.props.
If you wish to switch to a different runner, open the file and:
./Clean.ps1 and then rebuild.Packaging and publishing of a new version of all projects can be done using PowerShell. It requires Nuget CLI to be set up locally with account API key.
./Publish.ps1
AppBrix.ConsoleApp is a simple console application which uses the framework.
AppBrix.WebApp is a simple web application which uses the framework.