-
-
Notifications
You must be signed in to change notification settings - Fork 5
A 'fix' for changing context on subsequent generations #262
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
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
[Fact] | ||
public void Generate_RulesSet_Should_Generate_Wtih_Ruleset_And_Oeverride() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just or my testing, not sure how to name a test that checks for this issue I would go with
Genrate_ShouldUserCorrectRuleset_WhenRulestChangesInSubsiquentCalles
But that is a different style
PrepareFinish(context); | ||
CreateGenerateContext(ruleSets); | ||
|
||
PrepareCreate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could do both these methods as part of class construction since the context is no longer required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approved.
Accidental approval, sorry, will get to this shortly
@soenneker no worries, it's more of a suggestion of how it could be fixed. I don't like how coupled it is to the underlying implementation of Bogus. If they alter how the count it indexed could brake in weirder ways. |
An draft PR with a possible solution to #261