예제 #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();
        }
예제 #2
0
 public void TestCleanup()
 {
     // Clear data
     repoLayer.ClearAllData(serviceLayer.GetConnection());
     serviceLayer.GetConnection().Close();
 }
예제 #3
0
파일: ServiceLayer.cs 프로젝트: N90K/TNBase
 /// <summary>
 /// Clear all data
 /// </summary>
 public void ClearAllData()
 {
     repoLayer.ClearAllData(connection);
 }