-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathArchiveChatTestSuccess.cs
More file actions
27 lines (22 loc) · 980 Bytes
/
ArchiveChatTestSuccess.cs
File metadata and controls
27 lines (22 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Threading;
using System.Threading.Tasks;
using MangoAPI.BusinessLogic.ApiCommands.Communities;
using MangoAPI.BusinessLogic.Responses;
using MangoAPI.IntegrationTests.Helpers;
using Xunit;
namespace MangoAPI.IntegrationTests.ApiCommandsTests.ArchiveChatCommandHandlerTests;
public class ArchiveChatTestSuccess : IntegrationTestBase
{
private readonly Assert<ResponseBase> assert = new();
[Fact]
public async Task ArchiveChatTestSuccessAsync()
{
var user = await RequestAsync(CommandHelper.RegisterPetroCommand(), CancellationToken.None);
var chat = await RequestAsync(
CommandHelper.CreateExtremeCodeMainChatCommand(user.Response.Tokens.UserId),
CancellationToken.None);
var command = new ArchiveChatCommand(ChatId: chat.Response.ChatId, UserId: user.Response.Tokens.UserId);
var result = await RequestAsync(command, CancellationToken.None);
assert.Pass(result);
}
}