Merge fix.

This commit is contained in:
steavy29 2016-09-14 14:57:07 +03:00
parent 8411235fe1
commit 78e3a7794f
4 changed files with 103 additions and 16 deletions

View file

@ -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);

View file

@ -6,5 +6,6 @@
<add key="NumberToSendMessage" value=""/>
<add key="UserNameToSendMessage" value=""/>
<add key="NumberToGetUserFull" value=""/>
<add key="NumberToAddToChat" value=""/>
</appSettings>
</configuration>