-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send the sessionName parameter in the request body
- Loading branch information
1 parent
93d154a
commit 6fa032b
Showing
8 changed files
with
36 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,8 +123,8 @@ public async Task CreateNewChatSessionAsync_ShouldReturnANewChatSession() | |
// Arrange | ||
var currentUserUPN = "[email protected]"; | ||
var sessionType = "Test_type"; | ||
var chatSessionName = "Test_name"; | ||
var newSession = new Session { Name = chatSessionName, Type = sessionType, UPN = currentUserUPN }; | ||
var sessionName = "Test_name"; | ||
var newSession = new Session { Name = sessionName, Type = sessionType, UPN = currentUserUPN }; | ||
|
||
// Set up mock returns | ||
_callContext.CurrentUserIdentity.Returns(new UnifiedUserIdentity { UPN = currentUserUPN }); | ||
|
@@ -133,13 +133,13 @@ public async Task CreateNewChatSessionAsync_ShouldReturnANewChatSession() | |
.Returns(Task.FromResult(newSession)); | ||
|
||
// Act | ||
var resultSession = await _testedService.CreateNewChatSessionAsync(_instanceId, chatSessionName); | ||
var resultSession = await _testedService.CreateNewChatSessionAsync(_instanceId, sessionName); | ||
|
||
// Assert | ||
Assert.NotNull(resultSession); | ||
Assert.Equal(sessionType, resultSession.Type); | ||
Assert.Equal(currentUserUPN, resultSession.UPN); | ||
Assert.Equal(chatSessionName, resultSession.Name); | ||
Assert.Equal(sessionName, resultSession.Name); | ||
} | ||
|
||
#endregion | ||
|
@@ -176,12 +176,12 @@ public async Task RenameChatSessionAsync_ShouldReturnTheRenamedChatSession() | |
public async Task RenameChatSessionAsync_ShouldThrowExceptionWhenSessionIdIsNull() | ||
{ | ||
// Arrange | ||
var newChatSessionName = "NewName"; | ||
var sessionName = "NewName"; | ||
|
||
// Assert | ||
await Assert.ThrowsAsync<ArgumentNullException>(async () => | ||
{ | ||
await _testedService.RenameChatSessionAsync(_instanceId, null!, newChatSessionName); | ||
await _testedService.RenameChatSessionAsync(_instanceId, null!, sessionName); | ||
}); | ||
} | ||
|
||
|