Then an email with the subject "Reset your password" should be sent to "user"

A mail with a subject came to an account of the users registry (its email) or to an address, since the scenario began.

Examples

Then an email with the subject "Reset your password" should be sent to "user"
Then an email with the subject "Confirm your email" should be sent to "unconfirmeduser"
Then an email with the subject "Reset your password" should be sent to "user@example.com"
And an email with the subject "Confirm your email" should be sent to "user-changed@example.com"
Then an email with the subject "Confirm" should be sent to "user"

Pattern

Then(/^an email with the subject "([^"]*)" should be sent to "([^"]*)"$/, …)

Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.