public async override Task TestDeleteAsync() { StationType t = stationTypes[0]; await stationTypeDao.DeleteAsync(t.StationTypeId); StationType s = await stationTypeDao.FindByIdAsync(t.StationTypeId); Assert.IsNull(s); }
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); } }