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

fixed context usage #270

Closed
wants to merge 5 commits into from
Closed

fixed context usage #270

wants to merge 5 commits into from

Conversation

ArthNRick
Copy link
Contributor

When writing a cpf in context, it must be returned "formatted" or "unformatted" when retrieving the value later using another value for the includeFormatSymbols parameter

bchavez added a commit that referenced this pull request Dec 4, 2019
@bchavez
Copy link
Owner

bchavez commented Dec 4, 2019

Hey @ArthNRick thanks for this. Commit a42467d supersedes this PR.

Bogus v28.4.3 is now released with the Cpf context fix.
https://www.nuget.org/packages/Bogus/28.4.3

The following unit test should now 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");
}

I appologiez for the delay ⌛ and bug 🐛. Please let me know if everything works for you. 😎

Thanks,
Brian

@bchavez bchavez closed this Dec 4, 2019
@ArthNRick
Copy link
Contributor Author

Thank you!

@ArthNRick ArthNRick deleted the feature-add-br-numeric_cpf_cnpj branch December 4, 2019 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants