Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpf() Brazil Extensions Should Respect Formatting and Context #271

Closed
bchavez opened this issue Dec 4, 2019 · 0 comments
Closed

Cpf() Brazil Extensions Should Respect Formatting and Context #271

bchavez opened this issue Dec 4, 2019 · 0 comments
Labels

Comments

@bchavez
Copy link
Owner

bchavez commented Dec 4, 2019

The following unit test should pass:

void Main()
{
   Randomizer.Seed = new Random(1337);
   var p = new Person();
   p.Cpf().Should().Be("358.355.632-13");
   p.Cpf(includeFormatSymbols:false).Should().Be("35835563213");
}

The issue is formatting parameter should respect the person context cache.

Regarding #269 #270 and @ArthNRick.

@bchavez bchavez added the bug label Dec 4, 2019
@bchavez bchavez changed the title Cpf and Cnpj Brazil Extensions Should Respect Formatting and Context Cpf() Brazil Extensions Should Respect Formatting and Context Dec 4, 2019
@bchavez bchavez closed this as completed in a42467d Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant