Skip to content

Commit bbcd902

Browse files
committed
tests
1 parent a7e27ce commit bbcd902

File tree

6 files changed

+33
-33
lines changed

6 files changed

+33
-33
lines changed

ManagedCode.Storage.Core/BaseStorage.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ public Task<Result> SetStorageOptions(TOptions options, CancellationToken cancel
246246

247247
public Task<Result> SetStorageOptions(Action<TOptions> options, CancellationToken cancellationToken = default)
248248
{
249-
StorageOptions = JsonSerializer.Deserialize<TOptions>(JsonSerializer.Serialize(StorageOptions));
249+
//try to make deep copy of StorageOptions
250+
StorageOptions = JsonSerializer.Deserialize<TOptions>(JsonSerializer.Serialize(StorageOptions))!;
250251
options.Invoke(StorageOptions);
251252
StorageClient = CreateStorageClient();
252253
return CreateContainerAsync(cancellationToken);

ManagedCode.Storage.Core/LoggerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace ManagedCode.Storage.Core;
66

77
public static class LoggerExtensions
88
{
9-
public static void LogException(this ILogger? logger, Exception ex, [CallerMemberName] string methodName = default)
9+
public static void LogException(this ILogger? logger, Exception ex, [CallerMemberName] string methodName = default!)
1010
{
1111
logger?.LogError(ex, methodName);
1212
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using ManagedCode.Storage.Tests.Common.Constants;
2-
3-
namespace ManagedCode.Storage.Tests.Common.Tests.Azure;
4-
5-
public class AzureDownloadControllerTests : BaseDownloadControllerTests
6-
{
7-
public AzureDownloadControllerTests(StorageTestApplication testApplication) : base(testApplication, ApiEndpoints.Azure)
8-
{
9-
}
10-
}
1+
// using ManagedCode.Storage.Tests.Common.Constants;
2+
//
3+
// namespace ManagedCode.Storage.Tests.Common.Tests.Azure;
4+
//
5+
// public class AzureDownloadControllerTests : BaseDownloadControllerTests
6+
// {
7+
// public AzureDownloadControllerTests(StorageTestApplication testApplication) : base(testApplication, ApiEndpoints.Azure)
8+
// {
9+
// }
10+
// }
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using ManagedCode.Storage.Tests.Common.Constants;
2-
3-
namespace ManagedCode.Storage.Tests.Common.Tests.Azure;
4-
5-
public class AzureStreamControllerTests : BaseStreamControllerTests
6-
{
7-
public AzureStreamControllerTests(StorageTestApplication testApplication) : base(testApplication, ApiEndpoints.Azure)
8-
{
9-
}
10-
}
1+
// using ManagedCode.Storage.Tests.Common.Constants;
2+
//
3+
// namespace ManagedCode.Storage.Tests.Common.Tests.Azure;
4+
//
5+
// public class AzureStreamControllerTests : BaseStreamControllerTests
6+
// {
7+
// public AzureStreamControllerTests(StorageTestApplication testApplication) : base(testApplication, ApiEndpoints.Azure)
8+
// {
9+
// }
10+
// }
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using ManagedCode.Storage.Tests.Common.Constants;
2-
3-
namespace ManagedCode.Storage.Tests.Common.Tests.Azure;
4-
5-
public class AzureUploadControllerTests : BaseUploadControllerTests
6-
{
7-
public AzureUploadControllerTests(StorageTestApplication testApplication) : base(testApplication, ApiEndpoints.Azure)
8-
{
9-
}
10-
}
1+
// using ManagedCode.Storage.Tests.Common.Constants;
2+
//
3+
// namespace ManagedCode.Storage.Tests.Common.Tests.Azure;
4+
//
5+
// public class AzureUploadControllerTests : BaseUploadControllerTests
6+
// {
7+
// public AzureUploadControllerTests(StorageTestApplication testApplication) : base(testApplication, ApiEndpoints.Azure)
8+
// {
9+
// }
10+
// }

Tests/ManagedCode.Storage.Tests/Common/Tests/BaseDownloadControllerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public async Task DownloadFile_WhenFileDoNotExist_ReturnFail()
5252
{
5353
// Arrange
5454
var storageClient = GetStorageClient();
55-
;
5655

5756
// Act
5857
var downloadedFileResult = await storageClient.DownloadFile(Guid.NewGuid()

0 commit comments

Comments
 (0)