Add unit tests for 9 new services/controllers and expand existing test coverage
116 tests passing: JobPhotoService, MeasurementConversionService, PlatformSettingsService, QuoteApprovalController, QuotePhotoService, ShopCapabilityCalculator, StorageMigrationService, TenantContext, UsageQuotaController — plus expanded PricingCalculation, Registration, and Subscription tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -120,8 +120,11 @@ public class StorageMigrationService : IStorageMigrationService
|
||||
|
||||
var contentType = GetContentType(Path.GetExtension(fullPath).ToLowerInvariant());
|
||||
|
||||
await using var stream = File.OpenRead(fullPath);
|
||||
var uploadResult = await _blobService.UploadAsync(container, relativePath, stream, contentType);
|
||||
(bool Success, string ErrorMessage) uploadResult;
|
||||
await using (var stream = File.OpenRead(fullPath))
|
||||
{
|
||||
uploadResult = await _blobService.UploadAsync(container, relativePath, stream, contentType);
|
||||
}
|
||||
|
||||
if (!uploadResult.Success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user