Пример #1
0
        public void DeleteLaptop()
        {
            IRepositorio rep = new RepositorioMySQL();

            try
            {
                rep.Delete("Dell Latitude 5410");
            }
            catch (Exception ex)
            {
            }
            Assert.IsNull(rep.Consult("Dell Latitude 5410"));
        }
Пример #2
0
        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"));
        }
Пример #3
0
        public void ConsultLaptop()
        {
            Laptop       lap = null;
            IRepositorio rep = new RepositorioMySQL();

            try
            {
                lap = rep.Consult("Lenovo");
            }
            catch (Exception ex)
            {
            }
            Assert.IsNotNull(lap);
        }