public void ThrowArgumentException_WhenLogFileParserEnginesDictionaryDoesNotContainTheRequestedKey()
        {
            // Arrange
            var guidStringProvider         = new Mock <IGuidStringProvider>();
            var logFileParserEngineFactory = new Mock <ILogFileParserEngineFactory>();

            var engineId = "any engine id";
            var command  = new Mock <ICommand>();

            var logFileParserEngineManager = new LogFileParserEngineManager(guidStringProvider.Object, logFileParserEngineFactory.Object);

            // Act & Assert
            Assert.That(
                () => logFileParserEngineManager.EnqueueCommandToEngineWithId(engineId, command.Object),
                Throws.InstanceOf <ArgumentException>().With.Message.Contains("Requested engine not found."));
        }
        public void ThrowArgumenNullException_WhenICommandParameterIsNull()
        {
            // Arrange
            var guidStringProvider         = new Mock <IGuidStringProvider>();
            var logFileParserEngineFactory = new Mock <ILogFileParserEngineFactory>();

            var      engineId = "any engine id";
            ICommand command  = null;

            var logFileParserEngineManager = new LogFileParserEngineManager(guidStringProvider.Object, logFileParserEngineFactory.Object);

            // Act & Assert
            Assert.That(
                () => logFileParserEngineManager.EnqueueCommandToEngineWithId(engineId, command),
                Throws.InstanceOf <ArgumentNullException>().With.Message.Contains(nameof(ICommand)));
        }