コード例 #1
0
 /// <summary>Creates a new instance of the controller.</summary>
 /// <param name="readerService">The service for reading the CSV file.</param>
 /// <param name="writerService">The service for writting the CSV file.</param>
 /// <param name="configuration">The configuration for the application.</param>
 /// <param name="sortService">The service for sorting the players.</param>
 /// <param name="cleanService">The service for cleaning up the data to reduce chances of errors.</param>
 public PlayerController(ICsvFileReaderService readerService,
                         ICsvFileWriterService writerService,
                         IConfiguration configuration,
                         ISortService sortService,
                         IDataCleanerService cleanService)
 {
     _readerService = readerService;
     _writerService = writerService;
     _configuration = configuration;
     _sortService   = sortService;
     _cleanService  = cleanService;
 }
 /// <summary>Creates a new instance of the controller.</summary>
 /// <param name="getterService">Service for getting the data from other services.</param>
 /// <param name="writerService">The service for writting the CSV file.</param>
 /// <param name="configuration">The configuration for the application.</param>
 public PlayerExportController(IDataGetterService getterService, ICsvFileWriterService writerService, IConfiguration configuration)
 {
     _getterService = getterService;
     _writerService = writerService;
     _configuration = configuration;
 }