Example #1
0
        public void Setup()
        {
            repoLayer    = new RepositoryLayer();
            serviceLayer = new ServiceLayer("Listeners.s3db", repoLayer);

            // Insert some data.
            repoLayer.ClearAllData(serviceLayer.GetConnection());
            InsertListeners();
            InsertCollectors();
            InsertWeeklyStats();
            InsertYearStats();
        }
Example #2
0
 public void TestCleanup()
 {
     // Clear data
     repoLayer.ClearAllData(serviceLayer.GetConnection());
     serviceLayer.GetConnection().Close();
 }