EnsureFramework is designed to take the pain out of null checking and making sure (ensuring) your methods are being used the way they were intended and throwing exceptions when unsupported values are passed to them.
You can make sure values are in a specific range or simply make sure that an...
This package provides an easy and fluent way to write the boilerplate requirements, exception handling, connection, type mapping, and validation that your code may depend on in order to actually write the business logic you require.
A lightweight and extensible guard clause library.
The library is easily extensible through the use of extension methods. Even the main Ensure.Arg(...) call can be overridden to whatever you prefer e.g. Verify.That(...)
See the project site for...
Basic input validation via the `Ensure`-class throws an `ArgumentException`, `ArgumentNullException` or other Exception types, if the conditions are not met.
The second parameter `parameterName` from `Ensure.That(T value, string? parameterName = default!)` is optional and is automatically...
Use it to Ensure Controllers and Controller Actions has correct Attributes
- Authorize and AllowAnonymous are the currently supported attributes
Made to ensure Your code behaves as You intended.
With easy to use unit test configurations.