예제 #1
0
 public void Constructor()
 {
     using (SwedishSpeciesObservationServer swedishSpeciesObservationServer = new SwedishSpeciesObservationServer())
     {
         Assert.IsNotNull(swedishSpeciesObservationServer);
     }
 }
예제 #2
0
 private SwedishSpeciesObservationServer GetDatabase(Boolean refresh)
 {
     if (_database.IsNull() || refresh)
     {
         if (_database.IsNotNull())
         {
             _database.RollbackTransaction();
             _database.Dispose();
         }
         _database = new SwedishSpeciesObservationServer();
         _database.BeginTransaction();
     }
     return(_database);
 }