public HomeController(IEndpointDetailsService endpointDetailsService, ICallApiService callApiService)
 {
     this.endpointDetailsService = endpointDetailsService ?? throw new ArgumentNullException(nameof(endpointDetailsService));
     this.callApiService         = callApiService ?? throw new ArgumentNullException(nameof(callApiService));
 }
Пример #2
0
 /// <summary>
 /// Constructor with injection of a service for calling an api.
 /// </summary>
 /// <param name="service">Service for calling api with information on people.</param>
 public PeopleQueryRequestHandler(ICallApiService <PersonViewModel> service)
 {
     this.service = service;
 }