public async Task Send_ReplyInChannel() { var slackMessage = new SlackMessage(_sut) { Hub = new Channel { Id = "channel" }, Ts = "123" }; await Connect().ConfigureAwait(false); await _sut.Send(new BotMessage { ReplyTo = slackMessage, CreateThread = false }).ConfigureAwait(false); await _api.Chat.Received().PostMessage(Arg.Is <Message>(message => message.ThreadTs == null), Arg.Any <CancellationToken?>()).ConfigureAwait(false); }
public async Task Send_ReplyInChannel() { var slackMessage = new SlackMessage(_sut) { Hub = new Channel { Id = "channel" }, Ts = "123" }; await Connect(); await _sut.Send(new BotMessage { ReplyTo = slackMessage, CreateThread = false }); await _api.Chat.Received().PostMessage(Arg.Is <Message>(message => message.ThreadTs == null)); }