public InvestmentManagersController(IHttpClientFactory clientFactory, IConfiguration config, IMapper mapper, IInvestmentManagerRepository investmentManagerRepository)
 {
     _clientFactory = clientFactory;
     _config        = config;
     _mapper        = mapper ??
                      throw new ArgumentNullException(nameof(mapper));
     _investmentManagerRepository = investmentManagerRepository ??
                                    throw new ArgumentNullException(nameof(investmentManagerRepository));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Inject repository (using Ninject)
 /// </summary>
 /// <param name="repository"></param>
 public HomeController(IInvestmentManagerRepository repository)
 {
     _repository = repository;
 }