Пример #1
0
 public TripDetailsController(
     ITripDetailsViewModelProvider generator,
     IAccountManager accountManager,
     ITripUserRepository tripUserRepository,
     ITripDetailsRepository tripDetailsRepository,
     IViewerTypeMapper viewerTypeMapper,
     IApplicationUserRepository applicationUserRepository,
     IFileReader <string> fileReader,
     IFileManagerFactory fileManagerFactory,
     IPdfCreator pdfCreator,
     INotificationProvider notificationProvider,
     IOfferStateEmailSender stateEmailSender,
     INotificationProvider htmlNotification,
     ITripTimeCollisionChecker tripTimeCollisionChecker)
 {
     this.generator                 = generator;
     this.accountManager            = accountManager;
     this.tripUserRepository        = tripUserRepository;
     this.tripDetailsRepository     = tripDetailsRepository;
     this.viewerTypeMapper          = viewerTypeMapper;
     this.applicationUserRepository = applicationUserRepository;
     this.fileReader                = fileReader;
     this.notificationProvider      = notificationProvider;
     this.stateEmailSender          = stateEmailSender;
     this.htmlNotification          = htmlNotification;
     fileManager     = fileManagerFactory.GetManager(FileType.Json);
     pngFileManager  = fileManagerFactory.GetManager(FileType.Png);
     this.pdfCreator = pdfCreator;
     this.tripTimeCollisionChecker = tripTimeCollisionChecker;
 }
Пример #2
0
 public ShotGun(IHttpClientFactory httpClientFactory,
                IPdfCreator pdfCreator,
                GunOptions options)
 {
     _httpClientFactory = httpClientFactory;
     _pdfCreator        = pdfCreator;
     _options           = options;
 }
Пример #3
0
 public InvoiceService(ILog <InvoiceService> log
                       , IOptions <ApplicationConfiguration> options
                       , IQuery query
                       , IStore store
                       , ITransaction transactionScope
                       , IPdfCreator pdfCreator
                       , ITemplateRepository templateRepository
                       )
     : base(log, options, query, store, transactionScope)
 {
     _pdfCreator         = pdfCreator;
     _templateRepository = templateRepository;
 }
 public PersonController(IMapperControl mapperControl, IPersonService personService,
                         IReservedSeatService reservedSeatService, ITicketService ticketService,
                         IOrderService orderService, IPdfCreator pdfCreator, IEmailSender emailSender)
 {
     this.mapperControl       = mapperControl;
     this.personService       = personService;
     this.reservedSeatService = reservedSeatService;
     this.ticketService       = ticketService;
     this.orderService        = orderService;
     this.pdfCreator          = pdfCreator;
     this.emailSender         = emailSender;
     personViewModels         = new List <PersonViewModel>();
     ticketViewModels         = new List <TicketViewModel>();
 }