public async Task ProcessRequestAsync_Ignore_Secret(string commandText, TrayCommandType command)
        {
            // Arrange
            _mocker.GetMock <ITrayCommandHelper>().Setup(x => x.GetCommandType(commandText)).Returns(command);

            // Act
            await _hostHelper.ProcessRequestAsync($"/someCode/{commandText}").ConfigureAwait(false);

            // Assert
            _mocker.Verify <ITrayCommandHelper>(x => x.RunCommand(command), Times.Once);
        }
Beispiel #2
0
        public async Task ProcessRequestAsync_Ignore_Secret()
        {
            // Arrange
            Guid commandId = Guid.NewGuid();

            // Act
            await _hostHelper.ProcessRequestAsync($"/someCode/{commandId}").ConfigureAwait(false);

            // Assert
            _mocker.Verify <ICommandsManager>(x => x.RunCommand(commandId, null), Times.Once);
        }