Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSimmons committed Mar 30, 2024
1 parent 5ba03b4 commit 9f96e36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GettyImages.Api/AiGenerator/ImageGenerations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal static ImageGenerations GetInstance(Credentials credentials, string bas
return new ImageGenerations(credentials, baseUrl, customHandler);
}

public ImageGenerations With(ImageGenerationsRequest value)
public ImageGenerations WithImageGenerationsRequest(ImageGenerationsRequest value)
{
BodyParameter = value;
return this;
Expand Down
2 changes: 1 addition & 1 deletion IntegrationTests/AiGeneratorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public async Task InitializeAsync()
ImageGenerationsResponse = await ApiClient
.GetApiClientWithResourceOwnerCredentials(ApiKey, ApiSecret, UserName, UserPassword)
.ImageGenerations()
.With(new ImageGenerationsRequest
.WithImageGenerationsRequest(new ImageGenerationsRequest
{
Prompt = "a prompt",
Mood = ImageGenerationsMood.Dramatic,
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/AiGenerator/GenerateImagesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public async Task InitializeAsync()
var testHandler = TestUtil.CreateTestHandler();
await ApiClient.GetApiClientWithClientCredentials("apiKey", "apiSecret", testHandler)
.ImageGenerations()
.With(new ImageGenerationsRequest
.WithImageGenerationsRequest(new ImageGenerationsRequest
{
Prompt = "a prompt",
Mood = ImageGenerationsMood.Dramatic,
Expand Down

0 comments on commit 9f96e36

Please sign in to comment.