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;
 }
 public TemplateManager(
     IFileManagerFactory fileManagerFactory,
     IRuleManager ruleManager,
     IErrorCollectorManager errorCollectorManager,
     string folderPath,
     string ruleName)
 {
     _ruleName = ruleName;
     _errorCollectorManager = errorCollectorManager;
     _ruleManager = ruleManager;
     _fileManager = fileManagerFactory.GetFileManager(folderPath);
 }
        public DataSelectViewModel(IDataHandler <DocumentSet> dataHandler, IFileManagerFactory fileManagerFactory, IFolderBrowserDialogService openFolder)
            : base(dataHandler)
        {
            Guard.NotNull(() => openFolder, openFolder);
            Guard.NotNull(() => fileManagerFactory, fileManagerFactory);
            this.fileManagerFactory = fileManagerFactory;
            Select = new SelectableViewModel(openFolder, this);
            var canSearch  = this.WhenAny(x => x.Select.Path, x => x.Value != null && Directory.Exists(x.Value));
            var visibility = Observable.Return(Visibility.Visible);

            InitMain(canSearch, visibility);
        }
 public TripCreatorController(
     IAccountManager _accountManager,
     ITripDetailsRepository _tripDetailsRepository,
     IFileManagerFactory _fileManagerFactory,
     INotificationProvider _htmlNotification,
     ITripTimeCollisionChecker tripTimeCollisionChecker)
 {
     accountManager                = _accountManager;
     tripDetailsRepository         = _tripDetailsRepository;
     fileManager                   = _fileManagerFactory.GetManager(FileType.Json);
     htmlNotification              = _htmlNotification;
     this.tripTimeCollisionChecker = tripTimeCollisionChecker;
 }
 public RuleManager(IFileManagerFactory fileManagerFactory)
 {
     _fileManager = fileManagerFactory.GetFileManager(".");
 }
Exemple #6
0
 public PdfCreator(IFileManagerFactory fileManagerFactory)
 {
     pngFileManager = fileManagerFactory.GetManager(FileType.Png);
 }