public void DeleteLaptop() { IRepositorio rep = new RepositorioMySQL(); try { rep.Delete("Dell Latitude 5410"); } catch (Exception ex) { } Assert.IsNull(rep.Consult("Dell Latitude 5410")); }
public void CreateLaptop() { IRepositorio rep = new RepositorioMySQL(); try { rep.Create(new Laptop("Dell Latitude 5410", 16, 500)); } catch (Exception ex) { } Assert.IsNotNull(rep.Consult("Dell Latitude 5410")); }
public void ConsultLaptop() { Laptop lap = null; IRepositorio rep = new RepositorioMySQL(); try { lap = rep.Consult("Lenovo"); } catch (Exception ex) { } Assert.IsNotNull(lap); }