Implements outbox pattern for reliable message delivery Adds email verification flow with Postmark integration Enhances account registration with secure token generation Introduces background processing for asynchronous email sending Implements database-level notification mechanism for message processing
20 lines
616 B
C#
20 lines
616 B
C#
using LightBDD.Framework;
|
|
using LightBDD.Framework.Scenarios;
|
|
using LightBDD.MsTest3;
|
|
|
|
namespace PlanTempus.X.BDD.Scenarios;
|
|
|
|
[TestClass]
|
|
public partial class OrganizationSetupSpecs : FeatureFixtures.OrganizationSetupSpecs
|
|
{
|
|
[Scenario]
|
|
[TestMethod]
|
|
public async Task Create_organization_for_registered_account()
|
|
{
|
|
await Runner.RunScenarioAsync(
|
|
_ => Given_a_registered_account(),
|
|
_ => When_I_create_an_organization_with_connection_string("Host=localhost;Database=tenant_db;"),
|
|
_ => Then_the_organization_should_be_created_successfully()
|
|
);
|
|
}
|
|
}
|