public void Initialize()
 {
     employees = new List<IEmployee>();
     for (var i = 0; i < 10; i++)
     {
         employees.Add(EmployeeGenerator.GenerateValidEmployee());
     }
     reportFileCreator = new ReportFileCreator<IEmployee>(employees, new BasicReport());    
 }
 public FileResult LoadStatistic()
 {
     var fileCreator =
         new ReportFileCreator<IEmployee>(
             staffService.GetStaff().Where(employee => employee.Status == StaffStatus.Active), new BasicReport());
     const string fileType = "application/csv";
     const string fileName = "report.csv";
     var filePath = Server.MapPath("~/report.csv");
     fileCreator.CreateReport(filePath);
     return File(filePath, fileType, fileName);
 }