Skip to content

Created async overload for clausules that use a predicate#228

Merged
ardalis merged 3 commits into
ardalis:mainfrom
danny-bos-developer:main
Feb 17, 2023
Merged

Created async overload for clausules that use a predicate#228
ardalis merged 3 commits into
ardalis:mainfrom
danny-bos-developer:main

Conversation

@danny-bos-developer

Copy link
Copy Markdown
Contributor

PR regarding dicussion 226:
#226

I've created the async overloads and UnitTests for it.

@danny-bos-developer

Copy link
Copy Markdown
Contributor Author

I made GetCustomStruct public. There was a build error for this.

@Reapism Reapism left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @danny-bos-developer for creating easy to read, and succinct unit tests. This could be a great fail early scenario generally speaking.

Small suggestion... I would rename the method to be called ExpressionAsync instead of AgainstExpressionAsync since this is extending off the IGuardClause of this library, and the only entry point to this method is via the Against property so it is already explicit via usage of the library.

Great addition! Cheers.

@danny-bos-tata

Copy link
Copy Markdown
Contributor

@Reapism Thanks Antony and I agree with your suggestion to remove Guard from the method. I only cannot edit any files in my PR.

Some assistance or guidance would be appreciated.

@danny-bos-developer

Copy link
Copy Markdown
Contributor Author

I need some TLC for this PR please

@Reapism

Reapism commented Feb 15, 2023

Copy link
Copy Markdown

@danny-bos-developer are you not able to edit the pull request?

@danny-bos-tata

danny-bos-tata commented Feb 16, 2023 via email

Copy link
Copy Markdown
Contributor

@ardalis

ardalis commented Feb 16, 2023

Copy link
Copy Markdown
Owner

I'll get it sorted

@danny-bos-tata

danny-bos-tata commented Feb 16, 2023 via email

Copy link
Copy Markdown
Contributor

@ardalis ardalis merged commit d54c66a into ardalis:main Feb 17, 2023
@ardalis

ardalis commented Feb 17, 2023

Copy link
Copy Markdown
Owner

Temporarily breaking main with this...

This was referenced Apr 30, 2026
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.

4 participants