mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10: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
+2
-3
@@ -215,9 +215,8 @@ public class GetDirectoriesEndpointTests : IClassFixture<AuthenticatedLuminaApiF
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -42,10 +42,9 @@ public class GetDrivesEndpointTests : IClassFixture<AuthenticatedLuminaApiFactor
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+2
-3
@@ -99,9 +99,8 @@ public class GetTypeEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -256,9 +256,8 @@ public class GetFilesEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -256,9 +256,8 @@ public class GetTreeFilesEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -147,9 +147,8 @@ public class CheckPathExistsEndpointTests : IClassFixture<AuthenticatedLuminaApi
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -134,9 +134,8 @@ public class CombinePathEndpointTests : IClassFixture<AuthenticatedLuminaApiFact
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -205,9 +205,8 @@ public class GetPathParentEndpointTests : IClassFixture<AuthenticatedLuminaApiFa
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -162,9 +162,8 @@ public class GetPathRootEndpointTests : IClassFixture<AuthenticatedLuminaApiFact
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -113,9 +113,8 @@ public class GetPathSeparatorEndpointTests : IClassFixture<AuthenticatedLuminaAp
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -149,9 +149,8 @@ public class SplitPathEndpointTests : IClassFixture<AuthenticatedLuminaApiFactor
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -132,9 +132,8 @@ public class ValidatePathEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -170,9 +170,8 @@ public class GetThumbnailEndpointTests : IClassFixture<AuthenticatedLuminaApiFac
|
||||
/// <summary>
|
||||
/// Disposes API factory resources.
|
||||
/// </summary>
|
||||
public Task DisposeAsync()
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
_apiFactory.Dispose();
|
||||
return Task.CompletedTask;
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user