Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BodyController"/> class
 /// </summary>
 /// <param name="logger">An instance of an <see cref="ILogger"/> to log.</param>
 /// <param name="repository">An instance of an <see cref="IBodyRepository"/> to handle database access.</param>
 /// <param name="mapper">An instance of an <see cref="IMapper"/> to automatically map from and to DTOs.</param>
 /// <param name="edsmService">An instance of an <see cref="IEdsmService"/> to retrieve external id's and distances from</param>
 public BodyController(ILogger <BodyController> logger, IBodyRepository repository, IMapper mapper, IEdsmService edsmService)
     : base(logger, repository, mapper)
 {
     _edsmService = edsmService ?? throw new ArgumentNullException(nameof(edsmService));
 }
Exemplo n.º 2
0
 public BodyService(IBodyRepository repository, IMapper mapper) : base(repository, mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }