public void TestSendingMessageAndExceptionOccurs()
        {
            var result = _instance.Handle(_request, _cancellationToken);

            Assert.False(result.Result.SentToQueue);
            Assert.Equal(-1, result.Result.MessageId);
        }
        public async void ShouldReturnMessageIdAfterSuccess()
        {
            _repositoryMock.Setup(x => x.Create(It.IsAny <Message>())).ReturnsAsync(1);

            var commandResult = await _command.Handle(new SendMessageCommand("content", 1), default);

            commandResult.Status.Should().Be((int)HttpStatusCode.OK);
            commandResult.Content.Should().BeGreaterThan(0);
        }