22 lines
671 B
C#
22 lines
671 B
C#
|
|
using LightBDD.Framework;
|
|||
|
|
using LightBDD.Framework.Scenarios;
|
|||
|
|
using LightBDD.MsTest3;
|
|||
|
|
|
|||
|
|
namespace PlanTempus.X.BDD.Scenarios;
|
|||
|
|
|
|||
|
|
[TestClass]
|
|||
|
|
public partial class UserRegistrationSpecs : FeatureFixtures.UserRegistrationSpecs
|
|||
|
|
{
|
|||
|
|
[Scenario]
|
|||
|
|
[TestMethod]
|
|||
|
|
public async Task Successful_user_registration_with_valid_email()
|
|||
|
|
{
|
|||
|
|
await Runner.RunScenarioAsync(
|
|||
|
|
_ => Given_no_user_exists_with_email("test@example.com"),
|
|||
|
|
_ => When_I_submit_registration_with_name_and_email("Test User", "test@example.com"),
|
|||
|
|
_ => Then_a_new_user_should_be_created_with_email_and_confirmation_status("test@example.com", false),
|
|||
|
|
_ => Then_a_confirmation_email_should_be_sent()
|
|||
|
|
);
|
|||
|
|
}
|
|||
|
|
}
|