Exemplo n.º 1
0
        public async Task StandingsReceiverUnitTest()
        {
            var message = new Message
            {
                From    = UnitTestBuilder.GetUserNode(),
                To      = UnitTestBuilder.GetBotNode(),
                Content = PlainText.Parse("UnitTests")
            };
            bool success = false;

            try
            {
                success = await flowService.SendStandingsFlowAsync(message, CancellationToken.None);
            }
            catch (Exception ex)
            {
                ex.ShouldBeNull();
            }
            finally
            {
                success.ShouldBeTrue();
            }
        }
Exemplo n.º 2
0
 protected override async Task ReceiveMessageAsync(Message message, Contact contact, UserContext userContext, CancellationToken cancellationToken)
 {
     await _flowService.SendStandingsFlowAsync(message, cancellationToken);
 }