public void IniTests() { // Runs before each test. dal = new EntityFrameworkDAL(new GestDepDbContext()); dal.RemoveAllData(); gestDepService = new GestDepService(dal); }
//Rental rental = new Rental(new DateTime(2019, 10, 14, 16, 55, 56),30, new DateTime(2019, 10, 14, 16, 54, 56)); public static void PopulateDB() { IDAL dal = new EntityFrameworkDAL(new EcoScooterDbContext()); dal.RemoveAllData(); AddEcoScooter(dal); AddUsers(dal); AddStations(dal); AddScooters(dal); AddRentals(dal); }
public void CleanTests() { dal.RemoveAllData(); }
public void IniTests() { dal = new EntityFrameworkDAL(new GestDepDbContext()); dal.RemoveAllData(); }
public void CleanTests() { // Runs after each test dal.RemoveAllData(); }