internal void GenerateResponseWithError(FileNameDto file, IEnumerable <ErrorDto> errorList)
        {
            var fileInformation = new List <string>();
            var serializeError  = serialize.Execute(errorList);

            if (serializeError.Failure)
            {
                fileInformation.Add(serializeError.ErrorList.FirstOrDefault().Message);
            }
            fileInformation.Add(serializeError.Result);

            GenerateFile(fileInformation, file.BuildNameErrorResponse());
            MoveFileReqProcessed(file);
        }
        internal void GenerateResponse(FileNameDto file)
        {
            var fileInformation   = new List <string>();
            var serializeResponse = serialize.Execute <SellOrderResponseDto>(file.SellOrderResponse);

            if (serializeResponse.Failure)
            {
                fileInformation.Add(serializeResponse.ErrorList.FirstOrDefault().Message);
            }
            fileInformation.Add(serializeResponse.Result);

            fileManager.CreateFile(
                Path.Combine(directoryPath.FileResponseInPath, serializeResponse.Failure ? file.BuildNameErrorResponse() : file.BuildNameResponse()),
                fileInformation);

            MoveFileReqProcessed(file);
        }