Esempio n. 1
0
        private async Task TipTransferrableShouldSendMessageToSenderWhenRecipientHasZeroNxt(NxtTransferable transferable)
        {
            const decimal tipAmount       = 42;
            var           expectedMessage = MessageConstants.RecipientDoesNotHaveAnyNxtHint(TestConstants.RecipientAccount.SlackId, transferable.Name);

            slackConnectorMock.Setup(c => c.GetInstantMessageId(It.Is <string>(id => id == TestConstants.SenderAccount.SlackId))).ReturnsAsync(imSession.Id);

            await SetupSuccessfulTipTransferable(transferable, transferable.Name, tipAmount);

            slackConnectorMock.Verify(c => c.SendMessage(imSession.Id, expectedMessage, true));
        }