public void CanCount() { var query = new LogQuery(); var repo = new ReaderRepository(); var count = repo.Count(query); Assert.Greater(count, 0); }
public void CanClearLog() { var reader = new ReaderRepository(); var query = new LogQuery(); writer.Clear(); var count = reader.Count(query); Assert.AreEqual(0, count); }
public void CanCountFiltered(string filter, string filterValue, int expected) { var query = new LogQuery() { Filter = filter, FilterValue = filterValue }; var repo = new ReaderRepository(); Assert.AreEqual(expected, repo.Count(query)); }