Ejemplo n.º 1
0
        public async void TipNxtShouldSucceedWithRecipientAndSenderInTransactionMessage()
        {
            const decimal tipAmount          = 42;
            var           message            = CreateChannelMessage($"tipper tip <@{TestConstants.RecipientAccount.SlackId}> 42 NXT");
            var           transactionMessage = MessageConstants.NxtTipTransactionMessage(slackUser.Name, recipientUser.Name, "");

            await SendSuccessfulTip(message, tipAmount, "");

            nxtConnectorMock.Verify(c => c.Transfer(
                                        It.IsAny <NxtAccount>(),
                                        It.IsAny <string>(),
                                        It.IsAny <NxtTransferable>(),
                                        It.IsAny <decimal>(),
                                        It.Is <string>(msg => msg.Equals(transactionMessage)),
                                        It.IsAny <string>()));
        }