public void Setup() { repoLayer = new RepositoryLayer(); serviceLayer = new ServiceLayer("Listeners.s3db", repoLayer); // Insert some data. repoLayer.ClearAllData(serviceLayer.GetConnection()); InsertListeners(); InsertCollectors(); InsertWeeklyStats(); InsertYearStats(); }
public void TestCleanup() { // Clear data repoLayer.ClearAllData(serviceLayer.GetConnection()); serviceLayer.GetConnection().Close(); }
/// <summary> /// Clear all data /// </summary> public void ClearAllData() { repoLayer.ClearAllData(connection); }