//public CommandsController(IUserRepo repositoryUser, ICommanderRepo repositoryCommander, IMapper mapper, IConfiguration config) public CommandsController(ICommanderRepo repositoryCommander, IMapper mapper, IConfiguration config) { //_repositoryUser = repositoryUser; _repositoryCommander = repositoryCommander; _mapper = mapper; _config = config; }
public CommandsController( ICommanderRepo commanderRepo, IMapper mapper) { repository = commanderRepo; this.mapper = mapper; }
//private readonly CommandReadDto _commandDto; //private readonly CommandsProfile _commandProfile; public CommandController(ICommanderRepo repo, IMapper mapper) { _repo = repo; _mapper = mapper; //_commandDto = dto; //_commandProfile = profile; }
private readonly IMapper _mapper; // automapper public CommandsController(ICommanderRepo repository, IMapper mapper) // (.... , mapper) --> use automapper within our controller *this is depedency injection again XD { //Constructor for depedency injection //whatever is dependency injected we want to assign it to _repository _repository = repository; _mapper = mapper; }
public CommandsController( ICommanderRepo repository, IMapper mapper ) { _repository = repository; _mapper = mapper; }
public CommandsController(ICommanderRepo repository, IMapper mapper) { // What ever is injected (repository), assign to // _repository _repository = repository; // Mapper injected _mapper = mapper; }
public CommandsController(ICommanderRepo repository) //this repository is being Injected from the service container, that's how I can use an interface as an argument { _repository = repository; }
public CommandsController(ICommanderRepo commanderRepo, IMapper mapper) { _command_repo = commanderRepo; _mapper = mapper; }
public CommandsController(ICommanderRepo repository, IMapper mapper)//constructor para hacer dependecy injection de ICommanderRepo { _repository = repository; _mapper = mapper; }
public CommandsController(ICommanderRepo repo) { _repo = repo; }
public CommandsController(ICommanderRepo repository, IMapper mapper) { _repository = repository; //Dependency injection _mapper = mapper; }
public CommandsController(ICommanderRepo respository, IMapper mapper) // ctor to crate a constructor { _repository = respository; _mapper = mapper; }
//private readonly MockCommanderRepo repo = new MockCommanderRepo(); public CommandsController(ICommanderRepo commander, IMapper mapper) { _command = commander; _mapper = mapper; }
public CommandController(ICommanderRepo commanderRepo, IMapper mapper) { _data = commanderRepo; _mapper = mapper; }
public CommandsController(ICommanderRepo repository, IMapper mapper, IConfiguration configuration) { _repository = repository; _mapper = mapper; _configuration = configuration; }
public CommandsController(ICommanderRepo repository, IMapper mapper) { //repository is passed here from startup service.AddScoped _repository = repository; _mapper = mapper; }
public CommandsController(ICommanderRepo repository, IMapper mapper) // This is called dependency injection. Must first define in startup class { _repository = repository; _mapper = mapper; }
public CommandsController(ICommanderRepo repository, IMapper mapper, IMediator mediator) { _repository = repository; _mapper = mapper; _mediator = mediator; }
public CommandsController(ICommanderRepo repo, IMapper mapper) { _repoObj = repo; _mapper = mapper; }
public CommandsController(ICommanderRepo repository, ILogger <CommandsController> logger, IMapper mapper) { _repository = repository; _logger = logger; _mapper = mapper; }
public GetCommandByIdQueryHandler(ICommanderRepo repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public CommandsController(ICommanderRepo context, IMapper mapper) { _repo = context; _map = mapper; }
public CommandsController(ICommanderRepo repository, IMapper mapper) { _repository = repository; // assigne dependency injected value to _repository _mapper = mapper; }
private readonly ICommanderRepo _repository; //dependency injection public CommandsController(ICommanderRepo repository) { _repository = repository; //whatever is injected goes to repository }
public CommandsControllerTest(ICommanderRepo repository, IMapper mapper) : base(repository, mapper) { repository = _repository; mapper = _mapper; }
public CommandsController(ICommanderRepo repository, IMapper mapper) { this.repository = repository; this.mapper = mapper; }
public CommandsController(ICommanderRepo repo, IMapper mapper) { _mapper = mapper; _repo = repo; }
public CommandsController(ICommanderRepo repo) //dependency injection { _repository = repo; }
public CommandsController(ICommanderRepo repository) { _repository = repository; }
//private readonly MockCommanderRepo _repo = new MockCommanderRepo(); public CommandsController(ICommanderRepo repository, ICommanderRepoMock repositoryMock) { _repository = repository; _repositoryMock = repositoryMock; }