mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 06:55:06 +00:00
Merge fix.
This commit is contained in:
parent
8411235fe1
commit
78e3a7794f
4 changed files with 103 additions and 16 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
|
@ -25,6 +26,8 @@ namespace TLSharp.Tests
|
|||
|
||||
private string NumberToGetUserFull { get; set; }
|
||||
|
||||
private string NumberToAddToChat { get; set; }
|
||||
|
||||
private string apiHash = "";
|
||||
|
||||
private int apiId = 0;
|
||||
|
|
@ -53,6 +56,9 @@ namespace TLSharp.Tests
|
|||
if (string.IsNullOrEmpty(NumberToGetUserFull))
|
||||
Debug.WriteLine("NumberToGetUserFull not configured in app.config! Some tests may fail.");
|
||||
|
||||
NumberToAddToChat = ConfigurationManager.AppSettings[nameof(NumberToAddToChat)];
|
||||
if (string.IsNullOrEmpty(NumberToAddToChat))
|
||||
Debug.WriteLine("NumberToAddToChat not configured in app.config! Some tests may fail.");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
|
@ -321,7 +327,7 @@ namespace TLSharp.Tests
|
|||
|
||||
var createdChat = GetChatFromStatedMessage(statedMessageAfterCreation);
|
||||
|
||||
var addUserId = await client.ImportContactByPhoneNumber("380685004559");
|
||||
var addUserId = await client.ImportContactByPhoneNumber(NumberToAddToChat);
|
||||
|
||||
var statedMessageAfterAddUser = await client.AddChatUser(createdChat.id, addUserId.Value);
|
||||
var modifiedChat = GetChatFromStatedMessage(statedMessageAfterAddUser);
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@
|
|||
<add key="NumberToSendMessage" value=""/>
|
||||
<add key="UserNameToSendMessage" value=""/>
|
||||
<add key="NumberToGetUserFull" value=""/>
|
||||
<add key="NumberToAddToChat" value=""/>
|
||||
</appSettings>
|
||||
</configuration>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue