Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
glahaye committed Dec 7, 2023
1 parent 68edbaf commit a4afdcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration-tests/ChatTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ public async void ChatWithBot()
response.EnsureSuccessStatusCode();

var contentStream = await response.Content.ReadAsStreamAsync();
var createChatReponse = await JsonSerializer.DeserializeAsync<CreateChatResponse>(contentStream, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
Assert.NotNull(createChatReponse);
var createChatResponse = await JsonSerializer.DeserializeAsync<CreateChatResponse>(contentStream, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
Assert.NotNull(createChatResponse);

// Ask something to the bot
var ask = new Ask
{
Input = "Who is Satya Nadella?",
Variables = new KeyValuePair<string, string>[] { new("MessageType", ChatMessageType.Message.ToString()) }
};
response = await this._httpClient.PostAsJsonAsync($"chats/{createChatReponse.ChatSession.Id}/messages", ask);
response = await this._httpClient.PostAsJsonAsync($"chats/{createChatResponse.ChatSession.Id}/messages", ask);
response.EnsureSuccessStatusCode();

contentStream = await response.Content.ReadAsStreamAsync();
Expand All @@ -43,7 +43,7 @@ public async void ChatWithBot()


// Clean up
response = await this._httpClient.DeleteAsync($"chats/{createChatReponse.ChatSession.Id}");
response = await this._httpClient.DeleteAsync($"chats/{createChatResponse.ChatSession.Id}");
response.EnsureSuccessStatusCode();
}
}
Expand Down

0 comments on commit a4afdcb

Please sign in to comment.