public AudioController(IServiceFactory ninjectFactory) { if (ninjectFactory == null) throw new ArgumentNullException(nameof(ninjectFactory)); _tracksService = ninjectFactory.CreateTracksService(); }
public FileUploadController(IServiceFactory serviceFactory) { _tracksService = serviceFactory.CreateTracksService(); _imageService = serviceFactory.CreateImageService(); }
public CompilationController(IServiceFactory serviceFactory) { _compilationsService = serviceFactory.CreateCompilationService(); _tracksService = serviceFactory.CreateTracksService(); _imageService = serviceFactory.CreateImageService(); }