public PhotosController(ITestingRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig) { _cloudinaryConfig = cloudinaryConfig; _mapper = mapper; _repo = repo; Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
/// <summary> /// Initializes a new instance of the <see cref="TestingController"/> class. /// </summary> /// <param name="testingRepositoryService">The testing repository service</param> public TestingController(ITestingRepository testingRepositoryService) { _testingRepository = testingRepositoryService; }
public TestingController(ITestingRepository repository, ILogger <CocsController> logger) { _repository = repository; _logger = logger; }
public UsersController(ITestingRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }