@@ -45,15 +45,15 @@ public async Task Can_convert_image_to_png()
45
45
Assert . That ( response , Is . Not . Null ) ;
46
46
47
47
// Verify that we can get the job status
48
- var getStatusResponse = await client . PostAsync ( new GetArtifactGenerationStatus
48
+ var getStatusResponse = await client . SendAsync ( new GetArtifactGenerationStatus
49
49
{
50
50
JobId = response . JobId
51
51
} ) ;
52
52
53
53
while ( getStatusResponse . JobState is BackgroundJobState . Queued or BackgroundJobState . Started )
54
54
{
55
55
await Task . Delay ( 1000 ) ;
56
- getStatusResponse = await client . PostAsync ( new GetArtifactGenerationStatus
56
+ getStatusResponse = await client . SendAsync ( new GetArtifactGenerationStatus
57
57
{
58
58
JobId = response . JobId
59
59
} ) ;
@@ -103,15 +103,15 @@ public async Task Can_convert_image_to_jpeg()
103
103
Assert . That ( response , Is . Not . Null ) ;
104
104
105
105
// Verify that we can get the job status
106
- var getStatusResponse = await client . PostAsync ( new GetArtifactGenerationStatus
106
+ var getStatusResponse = await client . SendAsync ( new GetArtifactGenerationStatus
107
107
{
108
108
JobId = response . JobId
109
109
} ) ;
110
110
111
111
while ( getStatusResponse . JobState is BackgroundJobState . Queued or BackgroundJobState . Started )
112
112
{
113
113
await Task . Delay ( 1000 ) ;
114
- getStatusResponse = await client . PostAsync ( new GetArtifactGenerationStatus
114
+ getStatusResponse = await client . SendAsync ( new GetArtifactGenerationStatus
115
115
{
116
116
JobId = response . JobId
117
117
} ) ;
@@ -212,15 +212,15 @@ public async Task Can_crop_image()
212
212
Assert . That ( response , Is . Not . Null ) ;
213
213
214
214
// Verify that we can get the job status
215
- var getStatusResponse = await client . PostAsync ( new GetArtifactGenerationStatus
215
+ var getStatusResponse = await client . SendAsync ( new GetArtifactGenerationStatus
216
216
{
217
217
JobId = response . JobId
218
218
} ) ;
219
219
220
220
while ( getStatusResponse . JobState is BackgroundJobState . Queued or BackgroundJobState . Started )
221
221
{
222
222
await Task . Delay ( 1000 ) ;
223
- getStatusResponse = await client . PostAsync ( new GetArtifactGenerationStatus
223
+ getStatusResponse = await client . SendAsync ( new GetArtifactGenerationStatus
224
224
{
225
225
JobId = response . JobId
226
226
} ) ;
0 commit comments