예제 #1
0
        public AppController(INullMailService mailService, DutchContext ctx, IDutchRepository repository)
        {
            _mailService = mailService;
            _repository  = repository;

            _ctx = ctx;
        }
예제 #2
0
 // 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;
 }
예제 #3
0
 public AppController(INullMailService mailService)
 {
     _mailService = mailService;
 }
예제 #4
0
 public AppController(INullMailService mailService, ISampleAppRepository repository)
 {
     this._mailService = mailService;
     this._repository  = repository;
 }
예제 #5
0
 public AppController(INullMailService nullMailService, IDutchRepository repository)
 {
     this._nullMailService = nullMailService;
     this._repository      = repository;
 }
예제 #6
0
 public AppController(INullMailService mailService, IappBaseRepository repository)
 {
     this.mailService = mailService;
     this.repository  = repository;
 }