public SendMessageAsync ( string text, string roomId ) : Task |
||
text | string | |
roomId | string | |
Résultat | Task |
public async Task Can_login() { //const string password = "******"; //var driver = new RocketChatDriver("demo.rocket.chat", true, _xUnitLogger); var driver = new RocketChatDriver(Constants.RocketServer, false, _xUnitLogger); await driver.ConnectAsync(); var loginResult = await driver.LoginWithEmailAsync(Constants.OneEmail, Constants.OnePassword); var roomId = await driver.GetRoomIdAsync("GENERAL"); await driver.JoinRoomAsync(roomId.Result); await driver.SubscribeToRoomAsync(roomId.Result); var messages = await driver.SendMessageAsync("", roomId.Result); driver.Dispose(); }