From f77e387c1949e260c7b1d423c8d5b2753fad0fff Mon Sep 17 00:00:00 2001 From: Rodion Mostovoi Date: Wed, 6 Dec 2023 00:41:32 +0800 Subject: [PATCH] Adjust order of arguments in AddChatGptEntityFrameworkIntegration method 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. --- .../ChatGptEntityFrameworkIntegrationTests.cs | 4 ++-- .../ChatGptServicesIntegrationTests.cs | 5 +++-- .../DifferentClientsIntegrationsTests.cs | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/OpenAI.ChatGpt.UnitTests/ChatGptEntityFrameworkIntegrationTests.cs b/tests/OpenAI.ChatGpt.UnitTests/ChatGptEntityFrameworkIntegrationTests.cs index 97b0d68..5f9bef4 100644 --- a/tests/OpenAI.ChatGpt.UnitTests/ChatGptEntityFrameworkIntegrationTests.cs +++ b/tests/OpenAI.ChatGpt.UnitTests/ChatGptEntityFrameworkIntegrationTests.cs @@ -16,8 +16,8 @@ public async void AddChatGptEntityFrameworkIntegration_works() // Act services.AddChatGptEntityFrameworkIntegration( - options => options.UseInMemoryDatabase("chats"), - configuration + configuration, + options => options.UseInMemoryDatabase("chats") ); // Assert diff --git a/tests/OpenAI.ChatGpt.UnitTests/DependencyInjectionTests/ChatGptServicesIntegrationTests.cs b/tests/OpenAI.ChatGpt.UnitTests/DependencyInjectionTests/ChatGptServicesIntegrationTests.cs index 2d0eca4..48b79ee 100644 --- a/tests/OpenAI.ChatGpt.UnitTests/DependencyInjectionTests/ChatGptServicesIntegrationTests.cs +++ b/tests/OpenAI.ChatGpt.UnitTests/DependencyInjectionTests/ChatGptServicesIntegrationTests.cs @@ -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(); diff --git a/tests/OpenAI.ChatGpt.UnitTests/DependencyInjectionTests/DifferentClientsIntegrationsTests.cs b/tests/OpenAI.ChatGpt.UnitTests/DependencyInjectionTests/DifferentClientsIntegrationsTests.cs index 19e2193..7433ba6 100644 --- a/tests/OpenAI.ChatGpt.UnitTests/DependencyInjectionTests/DifferentClientsIntegrationsTests.cs +++ b/tests/OpenAI.ChatGpt.UnitTests/DependencyInjectionTests/DifferentClientsIntegrationsTests.cs @@ -16,8 +16,8 @@ public async void AddAzureOpenAiClient_succeeded() // Act services.AddChatGptEntityFrameworkIntegration( - options => options.UseInMemoryDatabase("chats"), - configuration + configuration, + options => options.UseInMemoryDatabase("chats") ); // Assert