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

Provide a way to create questions without creating a class #38

Closed
Galad opened this issue May 10, 2018 · 0 comments
Closed

Provide a way to create questions without creating a class #38

Galad opened this issue May 10, 2018 · 0 comments
Milestone

Comments

@Galad
Copy link
Owner

Galad commented May 10, 2018

Just like with the Actions class, a Questions class should permit to create a question without having to create a class:

public static IQuestion<int> RemainingItems()
{
   return Questions.Create(
      "Remaining items", 
      actor => actor.AsksFor(TextContent.Of(ToDoPage.ToDoItemsLeftCounter).AsInteger()))
      );
}

An overload with an ability should also be available.

@Galad Galad added this to the 1.0.0 milestone May 10, 2018
@Galad Galad closed this as completed in b464e27 May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant