Skip to content

Commit

Permalink
Documentation fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno de Souza Melo committed Apr 9, 2024
1 parent 4011b20 commit 8107e7c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/NuvTools.Validation/Brazil/Validator.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
namespace NuvTools.Validation.Brazil;


/// <summary>
/// Validators's class.
/// Responsible for validating rules used in Brazil.
/// </summary>
public static class Validator
{
/// <summary>
/// Validates a CPF or CNPJ.
/// </summary>
/// <param name="value">Enter a CPF or a CNPJ.</param>
/// <returns>True: CPF or CNPJ is valid. False: CPF or CNPJ is invalid.</returns>
/// <param name="value">Enter a CPF or CNPJ.</param>
/// <returns>Whether CPF or CNPJ is valid or not.</returns>
public static bool IsCPForCNPJ(this string value)
{
string numbersOnly = value.GetNumbersOnly();
Expand All @@ -25,7 +26,7 @@ public static bool IsCPForCNPJ(this string value)
/// Validates a CPF.
/// </summary>
/// <param name="value">Enter a CPF.</param>
/// <returns>True: CPF or CNPJ is valid. False: CPF or CNPJ is invalid.</returns>
/// <returns>Whether CPF is valid or not.</returns>
public static bool IsCPF(this string value)
{
value = value.GetNumbersOnly();
Expand Down Expand Up @@ -70,10 +71,10 @@ public static bool IsCPF(this string value)
}

/// <summary>
/// Método para validar um CNPJ.
/// Validates a CNPJ.
/// </summary>
/// <param name="value">Informe um CNPJ. Retorno True: CNPJ válido. False: CNPJ inválido.</param>
/// <returns>True: CNPJ válido. False: CNPJ inválido.</returns>
/// <param name="value">Enter a CNPJ.</param>
/// <returns>Whether CNPJ is valid or not.</returns>
public static bool IsCNPJ(this string value)
{
value = value.GetNumbersOnly();
Expand Down

0 comments on commit 8107e7c

Please sign in to comment.