Add promt fix tests
All checks were successful
SonarQube / Build and analyze (push) Successful in 2m54s
All checks were successful
SonarQube / Build and analyze (push) Successful in 2m54s
This commit is contained in:
@@ -44,7 +44,7 @@ public class SettingsCommandTests : UnitTestBase
|
||||
// Arrange
|
||||
var chatId = 12345L;
|
||||
var session = TestDataBuilder.ChatSessions.CreateBasicSession(chatId);
|
||||
_chatServiceMock.Setup(x => x.GetSession(chatId)).Returns(session);
|
||||
_chatServiceMock.Setup(x => x.GetSessionAsync(chatId)).ReturnsAsync(session);
|
||||
|
||||
var context = new TelegramCommandContext
|
||||
{
|
||||
@@ -70,8 +70,8 @@ public class SettingsCommandTests : UnitTestBase
|
||||
// Arrange
|
||||
var chatId = 12345L;
|
||||
_chatServiceMock
|
||||
.Setup(x => x.GetSession(chatId))
|
||||
.Returns((ChatBot.Models.ChatSession?)null);
|
||||
.Setup(x => x.GetSessionAsync(chatId))
|
||||
.ReturnsAsync((ChatBot.Models.ChatSession?)null);
|
||||
|
||||
var context = new TelegramCommandContext
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user