public void SetUp() { _scheduler = new ManualTaskScheduler(); _cache = new LogDataCache(); _fileName = GetFileName(); _table = new SQLiteLogTable(_scheduler, _cache, _fileName); }
//private readonly SQLiteLogTable _table; public MainWindow() { InitializeComponent(); _scheduler = new DefaultTaskScheduler(); _cache = new LogDataCache(); //_table = new SQLiteLogTable(_scheduler, _cache, @"..\Live\SQLiteLogger.db"); //TableView.LogTable = _table; }
public void SetUp() { _cache = new LogDataCache(); _table1 = new Mock<ILogTable>().Object; _table2 = new Mock<ILogTable>().Object; _file1 = new Mock<ILogFile>().Object; _file2 = new Mock<ILogFile>().Object; }
public void SetUp() { _cache = new LogDataCache(); _table1 = new Mock <ILogTable>().Object; _table2 = new Mock <ILogTable>().Object; _file1 = new Mock <ILogFile>().Object; _file2 = new Mock <ILogFile>().Object; }
public SQLiteLogTable(ITaskScheduler scheduler, LogDataCache cache, string fileName) { if (scheduler == null) throw new ArgumentNullException("scheduler"); if (cache == null) throw new ArgumentNullException("cache"); if (fileName == null) throw new ArgumentNullException("fileName"); _scheduler = scheduler; _cache = cache; _fileName = fileName; _listeners = new LogTableListenerCollection(this); _accessQueue = new LogDataAccessQueue<LogEntryIndex, LogEntry>(); _schema = new SQLiteSchema(string.Empty); _task = _scheduler.StartPeriodic(Update, ToString()); }
public void SetUp() { _scheduler = new ManualTaskScheduler(); _cache = new LogDataCache(); }