RadekDev.BuisnessRuleEngine 1.0.16

Additional Details

Typo in package name

dotnet add package RadekDev.BuisnessRuleEngine --version 1.0.16
                    
NuGet\Install-Package RadekDev.BuisnessRuleEngine -Version 1.0.16
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RadekDev.BuisnessRuleEngine" Version="1.0.16" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RadekDev.BuisnessRuleEngine" Version="1.0.16" />
                    
Directory.Packages.props
<PackageReference Include="RadekDev.BuisnessRuleEngine" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RadekDev.BuisnessRuleEngine --version 1.0.16
                    
#r "nuget: RadekDev.BuisnessRuleEngine, 1.0.16"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RadekDev.BuisnessRuleEngine@1.0.16
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RadekDev.BuisnessRuleEngine&version=1.0.16
                    
Install as a Cake Addin
#tool nuget:?package=RadekDev.BuisnessRuleEngine&version=1.0.16
                    
Install as a Cake Tool

BuisnessRuleEngine

This buisness rule engine is based on https://github.com/kgrzybek/modular-monolith-with-ddd.

USAGE


// let say this is our model
  class ClimbingGym
  {
      public ClimbingGym(bool isClosed)
      {
          IsClosed = isClosed;
      }

      public bool IsClosed { get; }
  }
  
// and in our system we have some rule that Climbing gym must be open befor performing some action 
  class ClimbingGymMustBeOpen : BuisnessRuleSubject<ClimbingGym>, IBuisnessRule
  {
      public TestBuisnessRule(ClimbingGym climbingGym): base(climbingGym)
      {

      }

      public string Message => "Climbing gym must be open";

      public bool IsBroken() => _subject.IsClosed;
  }

  var climbingGym = new ClimbingGym(true)
  
// insted of this 
if(climbingGym.IsClosed)
{
  throw new ConfictException("Clibing gym must be open")
}

// we can use 
  Check.Rule(new ClimbingGymMustBeOpen(climbingGym))
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on RadekDev.BuisnessRuleEngine:

Package Downloads
RadekDev.BuisnessRuleEngine.Test.Extension

This buisness rule engine is based on https://github.com/kgrzybek/modular-monolith-with-ddd.

BuisnessRuleEngine.Testing.NUnit.Extensions

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.16 393 11/30/2025 1.0.16 is deprecated.
1.0.15 374 11/30/2025 1.0.15 is deprecated.
1.0.14 374 11/30/2025 1.0.14 is deprecated.
1.0.13 368 11/30/2025 1.0.13 is deprecated.
1.0.12 371 11/30/2025 1.0.12 is deprecated.
1.0.11 368 11/30/2025 1.0.11 is deprecated.
1.0.8 372 11/30/2025 1.0.8 is deprecated.
1.0.7 403 11/30/2025 1.0.7 is deprecated.
1.0.0 285 11/30/2025 1.0.0 is deprecated.