@@ -89,20 +89,10 @@ public async Task TestApply()
8989 IReadOnlyCollection < IDiagnosticsOutput > diagnosticsOutputs = [ ] ;
9090 var collector = new DiagnosticsCollector ( diagnosticsOutputs ) ;
9191
92- // Create a real S3 client with minimal configuration
93- var s3Config = new AmazonS3Config
94- {
95- UseHttp = true ,
96- ForcePathStyle = true
97- } ;
98- var s3Client = new AmazonS3Client ( new AnonymousAWSCredentials ( ) , s3Config ) ;
92+
9993 var mockS3Client = new Mock < IAmazonS3 > ( ) ;
10094 var mockTransferUtility = new Mock < ITransferUtility > ( ) ;
10195
102- // Setup the mock to use the same config as the real client
103- mockS3Client . SetupGet ( x => x . Config ) . Returns ( s3Config ) ;
104-
105- // Create a mock filesystem with test files and temp directory
10696 var fileSystem = new MockFileSystem ( new Dictionary < string , MockFileData >
10797 {
10898 { "docs/add1.md" , new MockFileData ( "# New Document 1" ) } ,
@@ -139,7 +129,6 @@ public async Task TestApply()
139129 ]
140130 } ;
141131
142- // Setup S3 client to handle DeleteObjects operation
143132 mockS3Client . Setup ( client => client . DeleteObjectsAsync (
144133 It . IsAny < Amazon . S3 . Model . DeleteObjectsRequest > ( ) ,
145134 It . IsAny < Cancel > ( )
@@ -148,7 +137,6 @@ public async Task TestApply()
148137 HttpStatusCode = System . Net . HttpStatusCode . OK
149138 } ) ;
150139
151- // Setup TransferUtility to verify upload request
152140 mockTransferUtility . Setup ( utility => utility . UploadDirectoryAsync (
153141 It . IsAny < TransferUtilityUploadDirectoryRequest > ( ) ,
154142 It . IsAny < Cancel > ( )
0 commit comments