Skip to content

Commit a9ddeb6

Browse files
author
CIS Guru
committed
Phase 2.4 notification infrastructure complete
1 parent 033a70c commit a9ddeb6

6 files changed

Lines changed: 627 additions & 254 deletions

File tree

Aquiis.SimpleStart.Tests/ApplicationWorkflowService.EdgeCaseTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private static async Task<TestContext> CreateTestContextAsync()
3333
{
3434
var connection = new Microsoft.Data.Sqlite.SqliteConnection("Data Source=:memory:");
3535
connection.Open();
36-
var options = new DbContextOptionsBuilder<Infrastructure.Data.ApplicationDbContext>()
36+
var options = new DbContextOptionsBuilder<SimpleStart.Infrastructure.Data.ApplicationDbContext>()
3737
.UseSqlite(connection)
3838
.Options;
3939

@@ -56,7 +56,7 @@ private static async Task<TestContext> CreateTestContextAsync()
5656
var serviceProvider = new Mock<IServiceProvider>();
5757
var userContext = new UserContextService(mockAuth.Object, mockUserManager.Object, serviceProvider.Object);
5858

59-
var context = new Infrastructure.Data.ApplicationDbContext(options);
59+
var context = new SimpleStart.Infrastructure.Data.ApplicationDbContext(options);
6060
await context.Database.EnsureCreatedAsync();
6161

6262
var appUserEntity = new ApplicationUser { Id = testUserId, UserName = "testuser", Email = "t@t.com", ActiveOrganizationId = orgId };
@@ -146,7 +146,7 @@ private static async Task<TestContext> CreateTestContextAsync()
146146
private class TestContext : IAsyncDisposable
147147
{
148148
public required Microsoft.Data.Sqlite.SqliteConnection Connection { get; init; }
149-
public required Infrastructure.Data.ApplicationDbContext Context { get; init; }
149+
public required Aquiis.SimpleStart.Infrastructure.Data.ApplicationDbContext Context { get; init; }
150150
public required ApplicationWorkflowService WorkflowService { get; init; }
151151
public required string UserId { get; init; }
152152
public required Guid OrgId { get; init; }

Aquiis.SimpleStart.Tests/ApplicationWorkflowService.LeaseLifecycleTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public async Task GenerateAndAcceptLeaseOffer_CreatesLeaseAndTenant_UpdatesPrope
2323
// Arrange - setup SQLite in-memory
2424
var connection = new Microsoft.Data.Sqlite.SqliteConnection("Data Source=:memory:");
2525
connection.Open();
26-
var options = new DbContextOptionsBuilder<Infrastructure.Data.ApplicationDbContext>()
26+
var options = new DbContextOptionsBuilder<SimpleStart.Infrastructure.Data.ApplicationDbContext>()
2727
.UseSqlite(connection)
2828
.Options;
2929

@@ -49,7 +49,7 @@ public async Task GenerateAndAcceptLeaseOffer_CreatesLeaseAndTenant_UpdatesPrope
4949
var userContext = new UserContextService(mockAuth.Object, mockUserManager.Object, serviceProvider.Object);
5050

5151
// Create DbContext and seed data
52-
await using var context = new Infrastructure.Data.ApplicationDbContext(options);
52+
await using var context = new SimpleStart.Infrastructure.Data.ApplicationDbContext(options);
5353
await context.Database.EnsureCreatedAsync();
5454

5555
var appUserEntity = new ApplicationUser { Id = testUserId, UserName = "testuser", Email = "t@t.com", ActiveOrganizationId = orgId };

Aquiis.SimpleStart.Tests/ApplicationWorkflowServiceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public async Task GetApplicationWorkflowStateAsync_ReturnsExpectedState()
2424
// Use SQLite in-memory to support transactions used by workflow base class
2525
var connection = new Microsoft.Data.Sqlite.SqliteConnection("Data Source=:memory:");
2626
connection.Open();
27-
var options = new DbContextOptionsBuilder<Infrastructure.Data.ApplicationDbContext>()
27+
var options = new DbContextOptionsBuilder<SimpleStart.Infrastructure.Data.ApplicationDbContext>()
2828
.UseSqlite(connection)
2929
.Options;
3030
// Create test user and org
@@ -52,7 +52,7 @@ public async Task GetApplicationWorkflowStateAsync_ReturnsExpectedState()
5252
var userContext = new UserContextService(mockAuth.Object, mockUserManager.Object, serviceProvider.Object);
5353

5454
// Create DbContext and seed prospect/property
55-
await using var context = new Infrastructure.Data.ApplicationDbContext(options);
55+
await using var context = new SimpleStart.Infrastructure.Data.ApplicationDbContext(options);
5656
// Ensure schema is created for SQLite in-memory
5757
await context.Database.EnsureCreatedAsync();
5858
var appUserEntity = new ApplicationUser { Id = testUserId, UserName = "testuser", Email = "t@t.com", ActiveOrganizationId = orgId };

0 commit comments

Comments
 (0)