Skip to content

Commit

Permalink
Adjust order of arguments in AddChatGptEntityFrameworkIntegration method
Browse files Browse the repository at this point in the history
The argument order in the method AddChatGptEntityFrameworkIntegration was changed across multiple unit tests to promote consistency and improve readability. The configuration object is now the first parameter, followed by the options object.
  • Loading branch information
rodion-m committed Dec 5, 2023
1 parent 3143add commit f77e387
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public async void AddChatGptEntityFrameworkIntegration_works()

// Act
services.AddChatGptEntityFrameworkIntegration(
options => options.UseInMemoryDatabase("chats"),
configuration
configuration,
options => options.UseInMemoryDatabase("chats")
);

// Assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ public async void AddChatGptEntityFrameworkIntegration_works()

// Act
services.AddChatGptEntityFrameworkIntegration(
options => options.UseInMemoryDatabase("ChatGptInMemoryDb"),
configuration);
configuration,
options => options.UseInMemoryDatabase("ChatGptInMemoryDb")
);

// Assert
await using var provider = services.BuildServiceProvider();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public async void AddAzureOpenAiClient_succeeded()

// Act
services.AddChatGptEntityFrameworkIntegration(
options => options.UseInMemoryDatabase("chats"),
configuration
configuration,
options => options.UseInMemoryDatabase("chats")
);

// Assert
Expand Down

0 comments on commit f77e387

Please sign in to comment.