mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Fixes integration test fixtures disposing the shared web factory per test.
This commit is contained in:
1 parent
1189bbaf36
commit
cbe27ab22e
48 files changed
+112
-117
No files matched your search
+1
-1
@@ -134,6 +134,6 @@ public class GetUsersEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory
|
||||
|
||||
await dbContext.SaveChangesAsync();
|
||||
|
||||
_apiFactory.Dispose();
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -186,6 +186,6 @@ public class GetUserPermissionsEndpointTests : IClassFixture<AuthenticatedLumina
|
||||
|
||||
await dbContext.SaveChangesAsync();
|
||||
|
||||
_apiFactory.Dispose();
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -167,6 +167,6 @@ public class GetUserRoleEndpointTests : IClassFixture<AuthenticatedLuminaApiFact
|
||||
|
||||
await dbContext.SaveChangesAsync();
|
||||
|
||||
_apiFactory.Dispose();
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -255,6 +255,6 @@ public class UpdateUserRoleAndPermissionsEndpointTests : IClassFixture<Authentic
|
||||
|
||||
await dbContext.SaveChangesAsync();
|
||||
|
||||
_apiFactory.Dispose();
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user