Exemple #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;
 }
Exemple #2
0
 public ProfilesController(
     IApplicationUserViewModelGenerator generator,
     IAccountManager accountManager,
     IApplicationUserRepository repository,
     ITripDetailsRepository tripDetailsRepository,
     ITripUserRepository tripUserRepository,
     IRatesAndCommentRepository ratesAndCommentRepository,
     ITripDetailsViewModelConverter tripDetailsConverter)
 {
     this.generator                 = generator;
     this.accountManager            = accountManager;
     this.repository                = repository;
     this.tripDetailsRepository     = tripDetailsRepository;
     this.tripUserRepository        = tripUserRepository;
     this.ratesAndCommentRepository = ratesAndCommentRepository;
     this.tripDetailsConverter      = tripDetailsConverter;
 }