public void TestMethodListarBus()
        {
            GestorDAOSql gestorDAO = new GestorDAOSql();
                BusDAOSql busDAO = new BusDAOSql(gestorDAO);

                Assert.AreEqual(9, busDAO.Listar().Count);
        }
        public void TestMethodBuscarBus()
        {
            GestorDAOSql gestorDAO = new GestorDAOSql();
                BusDAOSql busDAO = new BusDAOSql(gestorDAO);

                Assert.AreEqual("PER-0793", busDAO.Buscar("PER-0793").Placa);
        }
        public void TestMethodEliminarBus()
        {
            int id = 3;

                GestorDAOSql gestorDAO = new GestorDAOSql();
                BusDAOSql busDAO = new BusDAOSql(gestorDAO);

                Assert.AreEqual(true, busDAO.Eliminar(id));
        }
        public void TestMethodIngresarBus()
        {
            GestorDAOSql gestorDAO = new GestorDAOSql();
                BusDAOSql busDAO = new BusDAOSql(gestorDAO);

                var tipoServicio = new TipoServicio("sdfsdf", "dfsfsd");
                tipoServicio.ID = 3;

                var bus = new Bus(2, "Toyota", "R 320 KL", "PER-078", tipoServicio);

                Assert.AreEqual(true, busDAO.Ingresar(bus));
        }
        public void TestMethodModificarBus()
        {
            GestorDAOSql gestorDAO = new GestorDAOSql();
                BusDAOSql busDAO = new BusDAOSql(gestorDAO);

                var tipoServicio = new TipoServicio("sdfsdf", "dfsfsd");
                tipoServicio.ID = 3;

                var bus = new Bus(2, "Toyota", "R 330 MG", "PER-0793", tipoServicio);
                bus.ID = 1;

                Assert.AreEqual(true, busDAO.Modificar(bus));
        }