Info
Version: | 1.0.2 |
Author(s): | Nasmi Sabeer @ TechXplorers |
Last Update: | Tuesday, June 28, 2016 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/nasmifive/TechXplorers.ArgumentValidation |
NuGet Url: | https://www.nuget.org/packages/TechXplorers.ArgumentValidation |
Install
Install-Package TechXplorers.ArgumentValidation
dotnet add package TechXplorers.ArgumentValidation
paket add TechXplorers.ArgumentValidation
TechXplorers.ArgumentValidation Download (Unzip the "nupkg" after downloading)
Sample Usage:
void Foo(int? id, string name)
{
Check
.That(() => id).When(It.HasValue).IsGreaterThan(0)
.AndThat(() => name).IsNotWhitespace();
....
}
/*
If any of the arguments do not satisfy the condition, will throw TechXplorers.ArgumentValidation.ArgumentNotValidException with the details
*/.