public static async Task ClassCleanupAsync() { await addressDao.DeleteAsync(1); await communityDao.DeleteAsync(1); await districtDao.DeleteAsync(1); await provinceDao.DeleteAsync(1); await countryDao.DeleteAsync(1); }
public static async Task ClassCleanupAsync() { foreach (var m in measurements) { await measurementDao.DeleteAsync(m.MeasurementId); } await unitDao.DeleteAsync(34); await measurementTypeDao.DeleteAsync(43); await stationDao.DeleteAsync(32); await stationTypeDao.DeleteAsync(83); await addressDao.DeleteAsync(93); await communityDao.DeleteAsync(74); await districtDao.DeleteAsync(54); await provinceDao.DeleteAsync(66); await countryDao.DeleteAsync(33); await userDao.DeleteAsync(23); }
public async Task <IResult> DeleteAsync(Address address) { await _addressDao.DeleteAsync(address); return(new SuccessResult(true, ResultMessages.AddressDeleted)); }