Beispiel #1
0
        public async override Task TestDeleteAsync()
        {
            StationType t = stationTypes[0];
            await stationTypeDao.DeleteAsync(t.StationTypeId);

            StationType s = await stationTypeDao.FindByIdAsync(t.StationTypeId);

            Assert.IsNull(s);
        }
Beispiel #2
0
 public async Task <StationType> GetStationTypesForStationTypeId(int stationTypeId)
 {
     try
     {
         return(await stationTypeDao.FindByIdAsync(stationTypeId));
     }
     catch (Common.Dal.Ado.MySqlException ex)
     {
         throw new BusinessSqlException(ex.Message, ex.InnerException);
     }
 }