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

configure title function with configurator #279

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

paulschup
Copy link

No description provided.

@matt-richardson
Copy link

I came here looking to see if how to do something very similar to this.

Maintainers - is there anything outstanding on this?

My use case:

I have a (slack) bot that I want to verify the conversation path. When there are buttons, i have a nice fluent interface:

...
.Then(x => ItRespondsWith("It seems you want to flooble the whatsit. Is that right?")
     .WithButton("Yes, that's right")
     .WithButton("Cancel"))
...

Unfortunately, the method that the FluentScanner looks at is the WithButton method, so it comes out as with button Cancel.

I'd like it to come out something like It responds with It seems you want to flooble the whatsit. Is that right? With buttons 'Yes that's right' and 'Cancel'" (or something similar).

This PR appears to enable a path forward for this.

The FluentScanner also appears to be hardcoded, so it appears I cant override that to have my own attribute that specifies the a function to call to get the title (which would be the nicest approaach)

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.

2 participants