@@ -12,29 +12,33 @@ namespace SixLabors.ImageSharp.Web.Tests.TestUtilities;
1212public class AWSS3StorageCacheTestServerFixture : TestServerFixture
1313{
1414 protected override void ConfigureCustomServices ( IServiceCollection services , IImageSharpBuilder builder )
15- => builder
16- . Configure < AWSS3StorageImageProviderOptions > ( o =>
17- o . S3Buckets . Add (
18- new AWSS3BucketClientOptions
15+ {
16+ return ;
17+
18+ builder
19+ . Configure < AWSS3StorageImageProviderOptions > ( o =>
20+ o . S3Buckets . Add (
21+ new AWSS3BucketClientOptions
22+ {
23+ Endpoint = TestConstants . AWSEndpoint ,
24+ BucketName = TestConstants . AWSBucketName ,
25+ AccessKey = TestConstants . AWSAccessKey ,
26+ AccessSecret = TestConstants . AWSAccessSecret ,
27+ Region = TestConstants . AWSRegion ,
28+ Timeout = TestConstants . AWSTimeout ,
29+ } ) )
30+ . AddProvider ( AWSS3StorageImageProviderFactory . Create )
31+ . Configure < AWSS3StorageCacheOptions > ( o =>
1932 {
20- Endpoint = TestConstants . AWSEndpoint ,
21- BucketName = TestConstants . AWSBucketName ,
22- AccessKey = TestConstants . AWSAccessKey ,
23- AccessSecret = TestConstants . AWSAccessSecret ,
24- Region = TestConstants . AWSRegion ,
25- Timeout = TestConstants . AWSTimeout ,
26- } ) )
27- . AddProvider ( AWSS3StorageImageProviderFactory . Create )
28- . Configure < AWSS3StorageCacheOptions > ( o =>
29- {
30- o . Endpoint = TestConstants . AWSEndpoint ;
31- o . BucketName = TestConstants . AWSCacheBucketName ;
32- o . AccessKey = TestConstants . AWSAccessKey ;
33- o . AccessSecret = TestConstants . AWSAccessSecret ;
34- o . Region = TestConstants . AWSRegion ;
35- o . Timeout = TestConstants . AWSTimeout ;
33+ o . Endpoint = TestConstants . AWSEndpoint ;
34+ o . BucketName = TestConstants . AWSCacheBucketName ;
35+ o . AccessKey = TestConstants . AWSAccessKey ;
36+ o . AccessSecret = TestConstants . AWSAccessSecret ;
37+ o . Region = TestConstants . AWSRegion ;
38+ o . Timeout = TestConstants . AWSTimeout ;
3639
37- AWSS3StorageCache . CreateIfNotExists ( o , S3CannedACL . Private ) ;
38- } )
39- . SetCache < AWSS3StorageCache > ( ) ;
40+ AWSS3StorageCache . CreateIfNotExists ( o , S3CannedACL . Private ) ;
41+ } )
42+ . SetCache < AWSS3StorageCache > ( ) ;
43+ }
4044}
0 commit comments