public PdfDocumentHandler(
     IPdfDocumentsRepository pdfDocumentRepository,
     IFileStorageHandler fileStorageHandler,
     IServiceLogger logger)
 {
     _pdfDocumentRepository = pdfDocumentRepository;
     _fileStorageHandler    = fileStorageHandler;
     _logger = logger;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new ParticipantPersonsSevisController with the given service.
 /// </summary>
 /// <param name="participantService">The participant person sevis service.</param>
 /// <param name="userProvider">The user provider</param>
 /// <param name="appSettings">The application settings.</param>
 /// <param name="storageHandler">The file storage handler.</param>
 public ParticipantPersonsSevisController(IParticipantPersonsSevisService participantService, IUserProvider userProvider, IFileStorageHandler storageHandler, AppSettings appSettings)
 {
     Contract.Requires(participantService != null, "The participantPersonSevis service must not be null.");
     Contract.Requires(userProvider != null, "The user provider must not be null.");
     Contract.Requires(storageHandler != null, "The storage handler must not be null.");
     this.participantService = participantService;
     this.userProvider       = userProvider;
     this.storageHandler     = storageHandler;
     this.appSettings        = appSettings;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="service"></param>
 /// <param name="dependentTypeService"></param>
 /// <param name="birthCountryReasonService">The birth country reason service</param>
 /// <param name="userProvider">The user provider.</param>
 /// <param name="appSettings">App settings.</param>
 /// <param name="storageHandler">The storage handler.</param>
 public DependentsController(IPersonService service,
                             IDependentTypeService dependentTypeService,
                             IBirthCountryReasonService birthCountryReasonService,
                             IFileStorageHandler storageHandler,
                             AppSettings appSettings,
                             IUserProvider userProvider)
 {
     Contract.Requires(service != null, "The participant service must not be null.");
     Contract.Requires(dependentTypeService != null, "The dependent type service must not be null.");
     Contract.Requires(birthCountryReasonService != null, "The birth country reason service must not be null.");
     Contract.Requires(userProvider != null, "The user provider must not be null.");
     this.service = service;
     this.dependentTypeService      = dependentTypeService;
     this.birthCountryReasonService = birthCountryReasonService;
     this.userProvider   = userProvider;
     this.appSettings    = appSettings;
     this.storageHandler = storageHandler;
 }
Ejemplo n.º 4
0
 public FileStorageArea(IFileStorageHandler handler)
 {
     this.handler = handler;
 }