Add promt fix tests
All checks were successful
SonarQube / Build and analyze (push) Successful in 2m54s

This commit is contained in:
Leonid Pershin
2025-10-21 12:07:56 +03:00
parent ef71568579
commit 1996fec14f
18 changed files with 398 additions and 333 deletions

View File

@@ -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
{