Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrebaltieri/flunt.extensions.br

Extensões do Flunt para validações BR
https://github.com/andrebaltieri/flunt.extensions.br

Last synced: 2 months ago
JSON representation

Extensões do Flunt para validações BR

Awesome Lists containing this project

README

        

# Flunt.Extensions.Br
Extensões do Flunt para validações BR

| Package | Version | Downloads |
| ------- | ----- | ----- |
| `Flunt.Extensions.Br` | [![NuGet](https://img.shields.io/nuget/v/Flunt.Extensions.Br.svg)](https://nuget.org/packages/Flunt.Extensions.Br) | [![Nuget](https://img.shields.io/nuget/dt/Flunt.Extensions.Br.svg)](https://nuget.org/packages/Flunt.Extensions.Br) |

### Dependencies
.NET Standard 2.0

You can check supported frameworks here:

https://docs.microsoft.com/pt-br/dotnet/standard/net-standard

### Instalation
This package is available through Nuget Packages: https://www.nuget.org/packages/Flunt.Extensions.Br

**Nuget**
```
Install-Package Flunt.Extensions.Br
```

**.NET CLI**
```
dotnet add package Flunt.Extensions.Br
```

## How to use
```csharp
public class Customer : Notifiable
{
public string Document { get; set; }

public void Validate()
{
AddNotifications(new Contract()
.IsCpf(Document, "CPF", "CPF inválido"));
}
}
```