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

Implement 'withField.setTo' #97

Open
bobalicious opened this issue Feb 9, 2021 · 0 comments
Open

Implement 'withField.setTo' #97

bobalicious opened this issue Feb 9, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bobalicious
Copy link
Owner

withFieldsSetTo is a very useful method for checking that an SObject has certain fields set to certain values, but it can be a little long-winded for checking a single value.

E.g.

.when( 'exampleMethod' )
.withParameterNamed( 'sObjectParameter' ).withFieldsSetTo( new Map<String,Object>{ 'IsPersonAccount' => true } )

It would be preferable to have a shorter-hand version of it that allows a single field value to be checked:

E.g.

.when( 'exampleMethod' )
.withParameterNamed( 'sObjectParameter' ).withField( 'IsPersonAccount' ).setTo( true )
@bobalicious bobalicious added the enhancement New feature or request label Feb 9, 2021
@bobalicious bobalicious added this to the Version 1.1 milestone Feb 9, 2021
@bobalicious bobalicious self-assigned this Feb 9, 2021
@bobalicious bobalicious modified the milestones: Version 1.1, Version 1.2 May 8, 2021
@bobalicious bobalicious modified the milestones: Version 1.2, Version 1.3 May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant