Migrate from User to Account domain concept
Renames core domain entities and services from "User" to "Account" Refactors project-wide namespaces, classes, and database tables to use "Account" terminology Updates related components, services, and database schema to reflect new domain naming Standardizes naming conventions across authentication and organization setup features
This commit is contained in:
parent
e5e7c1c19f
commit
88812177a9
29 changed files with 288 additions and 298 deletions
|
|
@ -3,19 +3,20 @@ using LightBDD.Framework.Scenarios;
|
|||
using LightBDD.MsTest3;
|
||||
|
||||
namespace PlanTempus.X.BDD.Scenarios;
|
||||
[TestClass]
|
||||
|
||||
[TestClass]
|
||||
public partial class AccountSecuritySpecs : FeatureFixtures.AccountSecuritySpecs
|
||||
{
|
||||
[Scenario]
|
||||
[TestMethod]
|
||||
public async Task User_lockout_after_multiple_failed_attempts()
|
||||
public async Task Account_lockout_after_multiple_failed_attempts()
|
||||
{
|
||||
await Runner.RunScenarioAsync(
|
||||
_ => Given_user_exists("test@example.com"),
|
||||
_ => Given_account_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()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue