Skip to content

Commit de6cfcd

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: 7a613f3
1 parent d0d887f commit de6cfcd

4 files changed

Lines changed: 21 additions & 17 deletions

File tree

‎src/Imagekit.Tests/Models/NamedTransformationTest.cs‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ public void FieldRoundtrip_Works()
1616
CreatedAt = DateTimeOffset.Parse("2024-01-10T09:00:00.000Z"),
1717
Enabled = true,
1818
Name = "small_thumbnail",
19-
Transformation = "w-150,h-150,fo-center,cm-resize",
19+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
2020
};
2121

2222
string expectedID = "6bZ9x2ZUx";
2323
DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2024-01-10T09:00:00.000Z");
2424
bool expectedEnabled = true;
2525
string expectedName = "small_thumbnail";
26-
string expectedTransformation = "w-150,h-150,fo-center,cm-resize";
26+
string expectedTransformation = "w-150,h-150,fo-center,cm-pad_resize";
2727

2828
Assert.Equal(expectedID, model.ID);
2929
Assert.Equal(expectedCreatedAt, model.CreatedAt);
@@ -41,7 +41,7 @@ public void SerializationRoundtrip_Works()
4141
CreatedAt = DateTimeOffset.Parse("2024-01-10T09:00:00.000Z"),
4242
Enabled = true,
4343
Name = "small_thumbnail",
44-
Transformation = "w-150,h-150,fo-center,cm-resize",
44+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
4545
};
4646

4747
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -62,7 +62,7 @@ public void FieldRoundtripThroughSerialization_Works()
6262
CreatedAt = DateTimeOffset.Parse("2024-01-10T09:00:00.000Z"),
6363
Enabled = true,
6464
Name = "small_thumbnail",
65-
Transformation = "w-150,h-150,fo-center,cm-resize",
65+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
6666
};
6767

6868
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -76,7 +76,7 @@ public void FieldRoundtripThroughSerialization_Works()
7676
DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2024-01-10T09:00:00.000Z");
7777
bool expectedEnabled = true;
7878
string expectedName = "small_thumbnail";
79-
string expectedTransformation = "w-150,h-150,fo-center,cm-resize";
79+
string expectedTransformation = "w-150,h-150,fo-center,cm-pad_resize";
8080

8181
Assert.Equal(expectedID, deserialized.ID);
8282
Assert.Equal(expectedCreatedAt, deserialized.CreatedAt);
@@ -94,7 +94,7 @@ public void Validation_Works()
9494
CreatedAt = DateTimeOffset.Parse("2024-01-10T09:00:00.000Z"),
9595
Enabled = true,
9696
Name = "small_thumbnail",
97-
Transformation = "w-150,h-150,fo-center,cm-resize",
97+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
9898
};
9999

100100
model.Validate();
@@ -175,7 +175,7 @@ public void CopyConstructor_Works()
175175
CreatedAt = DateTimeOffset.Parse("2024-01-10T09:00:00.000Z"),
176176
Enabled = true,
177177
Name = "small_thumbnail",
178-
Transformation = "w-150,h-150,fo-center,cm-resize",
178+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
179179
};
180180

181181
NamedTransformation copied = new(model);

‎src/Imagekit.Tests/Models/NamedTransformations/NamedTransformationCreateParamsTest.cs‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ public void FieldRoundtrip_Works()
1111
var parameters = new NamedTransformationCreateParams
1212
{
1313
Name = "small_thumbnail",
14-
Transformation = "w-150,h-150,fo-center,cm-resize",
14+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
1515
Enabled = true,
1616
};
1717

1818
string expectedName = "small_thumbnail";
19-
string expectedTransformation = "w-150,h-150,fo-center,cm-resize";
19+
string expectedTransformation = "w-150,h-150,fo-center,cm-pad_resize";
2020
bool expectedEnabled = true;
2121

2222
Assert.Equal(expectedName, parameters.Name);
@@ -30,7 +30,7 @@ public void OptionalNonNullableParamsUnsetAreNotSet_Works()
3030
var parameters = new NamedTransformationCreateParams
3131
{
3232
Name = "small_thumbnail",
33-
Transformation = "w-150,h-150,fo-center,cm-resize",
33+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
3434
};
3535

3636
Assert.Null(parameters.Enabled);
@@ -43,7 +43,7 @@ public void OptionalNonNullableParamsSetToNullAreNotSet_Works()
4343
var parameters = new NamedTransformationCreateParams
4444
{
4545
Name = "small_thumbnail",
46-
Transformation = "w-150,h-150,fo-center,cm-resize",
46+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
4747

4848
// Null should be interpreted as omitted for these properties
4949
Enabled = null,
@@ -59,7 +59,7 @@ public void Url_Works()
5959
NamedTransformationCreateParams parameters = new()
6060
{
6161
Name = "small_thumbnail",
62-
Transformation = "w-150,h-150,fo-center,cm-resize",
62+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
6363
};
6464

6565
var url = parameters.Url(new() { PrivateKey = "My Private Key", Password = "My Password" });
@@ -75,7 +75,7 @@ public void CopyConstructor_Works()
7575
var parameters = new NamedTransformationCreateParams
7676
{
7777
Name = "small_thumbnail",
78-
Transformation = "w-150,h-150,fo-center,cm-resize",
78+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
7979
Enabled = true,
8080
};
8181

‎src/Imagekit.Tests/Models/NamedTransformations/NamedTransformationUpdateParamsTest.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ public void FieldRoundtrip_Works()
1313
ID = "6bZ9x2ZUx",
1414
Enabled = false,
1515
Name = "small_thumbnail",
16-
Transformation = "w-200,h-200,fo-center,cm-resize",
16+
Transformation = "w-200,h-200,fo-center,cm-pad_resize",
1717
};
1818

1919
string expectedID = "6bZ9x2ZUx";
2020
bool expectedEnabled = false;
2121
string expectedName = "small_thumbnail";
22-
string expectedTransformation = "w-200,h-200,fo-center,cm-resize";
22+
string expectedTransformation = "w-200,h-200,fo-center,cm-pad_resize";
2323

2424
Assert.Equal(expectedID, parameters.ID);
2525
Assert.Equal(expectedEnabled, parameters.Enabled);
@@ -84,7 +84,7 @@ public void CopyConstructor_Works()
8484
ID = "6bZ9x2ZUx",
8585
Enabled = false,
8686
Name = "small_thumbnail",
87-
Transformation = "w-200,h-200,fo-center,cm-resize",
87+
Transformation = "w-200,h-200,fo-center,cm-pad_resize",
8888
};
8989

9090
NamedTransformationUpdateParams copied = new(parameters);

‎src/Imagekit.Tests/Services/NamedTransformationServiceTest.cs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ public class NamedTransformationServiceTest : TestBase
88
public async Task Create_Works()
99
{
1010
var namedTransformation = await this.client.NamedTransformations.Create(
11-
new() { Name = "small_thumbnail", Transformation = "w-150,h-150,fo-center,cm-resize" },
11+
new()
12+
{
13+
Name = "small_thumbnail",
14+
Transformation = "w-150,h-150,fo-center,cm-pad_resize",
15+
},
1216
TestContext.Current.CancellationToken
1317
);
1418
namedTransformation.Validate();

0 commit comments

Comments
 (0)