public ClientsForAdminCsvPublishService(CloudBlobClient blobClient, IAdminClientService adminClientService, IMapper mapper) : base(blobClient, new ClientForAdminCsvFormatter()) { _adminClientService = adminClientService; _mapper = mapper; }
public AdminClientsController(IAdminClientService adminClientService, IMapper mapper, ICsvPublishServiceFactory csvPublishServiceFactory) { _adminClientService = adminClientService; _mapper = mapper; _csvPublishServiceFactory = csvPublishServiceFactory; }
public CsvPublishServiceFactory(CloudBlobClient blobClient, IMapper mapper, IAdminUserService adminUserService, IAdminProjectService adminProjectService, IAdminClientService adminClientService) { _services = new Dictionary <Type, ICsvPublishService> { { typeof(AdminUser), new UsersForAdminCsvPublishService(blobClient, adminUserService, mapper) }, { typeof(AdminProject), new ProjectsForAdminCsvPublishService(blobClient, adminProjectService, mapper) }, { typeof(AdminClient), new ClientsForAdminCsvPublishService(blobClient, adminClientService, mapper) } }; }