private RequestInfoEventArgs GenerateWithoutVersion(string filePath) { IFileInfo fileInfo = _infoFactory.Create(filePath); IDirectoryInfo fileFormat = fileInfo.Directory(); IDirectoryInfo statisticalProgram = fileFormat.Parent(); IDirectoryInfo organizationNumber = statisticalProgram.Parent(); return(new RequestInfoEventArgs { FileFormat = fileFormat.Name, StatisticalProgram = statisticalProgram.Name, OrganizationNumber = organizationNumber.Name, FullPath = filePath, FileName = Path.GetFileName(filePath) }); }