public void ShouldInvokeILogFileParserEngineManager_StartNewLogFileParserEngineMethodOnce()
        {
            // Arrange
            var logFileParserEngineManager = new Mock <ILogFileParserEngineManager>();
            var commandJsonConvertProvider = new Mock <ICommandEnumerationJsonConvertProvider>();

            var logFileParserHubService = new LogFileParserHubService(logFileParserEngineManager.Object, commandJsonConvertProvider.Object);

            var username = "******";

            // Act
            logFileParserHubService.GetParsingSessionId(username);

            // Assert
            logFileParserEngineManager.Verify(m => m.StartLogFileParserEngine(username), Times.Once);
        }
        public void ShouldReturnCorrectStringValue()
        {
            // Arrange
            var logFileParserEngineManager = new Mock <ILogFileParserEngineManager>();
            var commandJsonConvertProvider = new Mock <ICommandEnumerationJsonConvertProvider>();

            var logFileParserHubService = new LogFileParserHubService(logFileParserEngineManager.Object, commandJsonConvertProvider.Object);

            var expectedReturnValue = "expected return value";

            logFileParserEngineManager.Setup(m => m.StartLogFileParserEngine(It.IsAny <string>())).Returns(expectedReturnValue);

            var username = "******";

            // Act
            var actualReturnValue = logFileParserHubService.GetParsingSessionId(username);

            // Assert
            Assert.That(actualReturnValue, Is.EqualTo(expectedReturnValue));
        }