Various work around the architecture

This commit is contained in:
Janus C. H. Knudsen 2025-03-03 00:42:20 +01:00
parent b1e134490d
commit 71576a4b1f
18 changed files with 522 additions and 358 deletions

View file

@ -0,0 +1,21 @@
using LightBDD.Framework;
using LightBDD.Framework.Scenarios;
using LightBDD.MsTest3;
namespace PlanTempus.X.BDD.Scenarios;
[TestClass]
public partial class AccountSecuritySpecs : FeatureFixtures.AccountSecuritySpecs
{
[Scenario]
[TestMethod]
public async Task User_lockout_after_multiple_failed_attempts()
{
await Runner.RunScenarioAsync(
_ => Given_user_exists("test@example.com"),
_ => When_I_attempt_5_failed_logins_within_5_minutes(),
_ => Then_the_account_should_be_locked(),
_ => And_lockout_end_should_be_set(),
_ => And_subsequent_login_attempts_should_fail_until_lockout_end()
);
}
}