コード例 #1
0
        public void Execute()
        {
            var employeeSalaries = _employeeSalaryService.GetAllEmployeeSalaries();
            var directoryInfo    = _directoryHandler.Create(_configurationProvider.SecureFolderPath, _configurationProvider.PaymentFilePathIdentity);
            var filename         = $"employee-salaries-{DateTime.Now.ToFileTime()}.csv";

            File.WriteAllText(Path.Combine(directoryInfo.FullName, filename), employeeSalaries.ToCsv(), Encoding.UTF8);
        }