public AppController(INullMailService mailService, DutchContext ctx, IDutchRepository repository) { _mailService = mailService; _repository = repository; _ctx = ctx; }
// what we're saying here is that the requirement for AppController // is that we need a mail service because at least one of our methods // requires sending mail. We're asking the dependency injection layer // to figure out how to construct one of these. public AppController(INullMailService mailService, IDutchRepository repository) { _mailService = mailService; _repository = repository; }
public AppController(INullMailService mailService) { _mailService = mailService; }
public AppController(INullMailService mailService, ISampleAppRepository repository) { this._mailService = mailService; this._repository = repository; }
public AppController(INullMailService nullMailService, IDutchRepository repository) { this._nullMailService = nullMailService; this._repository = repository; }
public AppController(INullMailService mailService, IappBaseRepository repository) { this.mailService = mailService; this.repository = repository; }