public void Execute_WhenArgsValid_ReadsInputFile()
        {
            var args = new[] { " arg1 ", "arg2" };

            validatorMock.Validate(args).Returns(Constants.ErrorCodes.Success);

            systemUnderTest.Execute(args);

            legacyDbDumpReaderMock.Received(1).ReadData("arg1");
        }
        public int Execute(string[] args)
        {
            loggingService.LogDebug("Begin Execution");

            var result = inputValidator.Validate(args);

            if (result == Constants.ErrorCodes.Success)
            {
                outputPath = args[1].Trim();
                result     = legacyDbDumpReader.ReadData(args[0].Trim());
            }

            loggingService.LogDebug("End Execution");
            return(result);
        }