public void DarioBot_AnswerBack_ForwardedReply_IfIt_DoesNotHas_TheFile() { IDarioBotReply reply = _darioBot.ReplyBack(new TelegramUpdate { Message = new TelegramMessage { From = new TelegramFrom { Id = MyId }, Text = "Baaaaa" } }); Assert.Equal(DarioBotReplyEnum.Forwarded, reply.Type); reply.ApplyTo(this); }
public void DarioBot_AnswersOk_IfForwardId_Asks_ToSet_ANameWithSpaces_FromACallback() { IDarioBotReply reply = _darioBot.ReplyBack(new TelegramUpdate { CallbackQuery = new TelegramCallbackQuery() { From = new TelegramFrom() { Id = MyId }, Data = $"{TelegramBotConstants.SetNameCommand} {MyName} Piccinelli" } }); Assert.Equal(DarioBotReplyEnum.Ok, reply.Type); reply.ApplyTo(this); }
public void DarioBot_AnswersOk_IfForwardId_Asks_ToSet_AName_FromAMessage() { IDarioBotReply reply = _darioBot.ReplyBack(new TelegramUpdate { Message = new TelegramMessage() { From = new TelegramFrom() { Id = MyId }, Text = $"{TelegramBotConstants.SetNameCommand} {MyName}" } }); Assert.Equal(DarioBotReplyEnum.Ok, reply.Type); reply.ApplyTo(this); }