public void SetUp()
        {
            _settings         = new ApplicationSettings("adwad");
            _bookmarks        = new Bookmarks("aawdwa");
            _dispatcher       = new ManualDispatcher();
            _scheduler        = new ManualTaskScheduler();
            _logSourceFactory = new SimplePluginLogSourceFactory(_scheduler);
            _filesystem       = new InMemoryFilesystem();
            _dataSources      = new DataSources(_logSourceFactory, _scheduler, _filesystem, _settings.DataSources, _bookmarks);
            _quickFilters     = new QuickFilters(_settings.QuickFilters);
            _actionCenter     = new ActionCenter();
            _updater          = new Mock <IAutoUpdater>();

            _services = new ServiceContainer();
            _services.RegisterInstance <ITaskScheduler>(_scheduler);
            _services.RegisterInstance <IDispatcher>(_dispatcher);
            _services.RegisterInstance <IPluginLoader>(new PluginRegistry());
            _services.RegisterInstance <IHighlighters>(new HighlighterCollection());
            _services.RegisterInstance <INavigationService>(new NavigationService());
            _services.RegisterInstance <IPluginUpdater>(new Mock <IPluginUpdater>().Object);

            _mainWindow = new MainWindowViewModel(_services,
                                                  _settings,
                                                  _dataSources,
                                                  _quickFilters,
                                                  _actionCenter,
                                                  _updater.Object);
        }
예제 #2
0
 public void SetUp()
 {
     _taskScheduler    = new DefaultTaskScheduler();
     _logSourceFactory = new SimplePluginLogSourceFactory(_taskScheduler);
     _settings         = new DataSource(AbstractTextLogSourceAcceptanceTest.File20Mb)
     {
         Id = DataSourceId.CreateNew()
     };
     _dataSource = new FileDataSource(_logSourceFactory, _taskScheduler, _settings, TimeSpan.FromMilliseconds(100));
 }
예제 #3
0
 public void SetUp()
 {
     _taskScheduler    = new ManualTaskScheduler();
     _logSourceFactory = new SimplePluginLogSourceFactory(_taskScheduler);
     _filesystem       = new InMemoryFilesystem();
     _settings         = new DataSource
     {
         Id = DataSourceId.CreateNew(),
         MergedDataSourceDisplayMode = DataSourceDisplayMode.CharacterCode
     };
 }
        public void SetUp()
        {
            _settings  = new DataSourceSettings();
            _bookmarks = new Mock <IBookmarks>();

            _scheduler           = new ManualTaskScheduler();
            _logSourceFactory    = new SimplePluginLogSourceFactory(_scheduler);
            _filesystem          = new InMemoryFilesystem();
            _dataSources         = new DataSources(_logSourceFactory, _scheduler, _filesystem, _settings, _bookmarks.Object);
            _actionCenter        = new Mock <IActionCenter>();
            _applicationSettings = new Mock <IApplicationSettings>();
        }
예제 #5
0
 public void SetUp()
 {
     _taskScheduler    = new ManualTaskScheduler();
     _logSourceFactory = new SimplePluginLogSourceFactory(_taskScheduler);
     _settings         = new DataSource
     {
         Id = DataSourceId.CreateNew(),
         MergedDataSourceDisplayMode = DataSourceDisplayMode.CharacterCode
     };
     _merged = new MergedDataSource(_taskScheduler, _settings, TimeSpan.Zero)
     {
         IsSingleLine = true
     };
     _unfilteredLogSource = _merged.UnfilteredLogSource;
 }
예제 #6
0
 public void SetUp()
 {
     _scheduler        = new ManualTaskScheduler();
     _logSourceFactory = new SimplePluginLogSourceFactory(_scheduler);
 }
예제 #7
0
 public void OneTimeSetUp()
 {
     _scheduler        = new ManualTaskScheduler();
     _logSourceFactory = new SimplePluginLogSourceFactory(_scheduler);
     _filesystem       = new InMemoryFilesystem();
 }