Esempio n. 1
0
        public void FindReservaTest()
        {
            rDAL.AddReserva(new Reserva {
                VehiculoID = 2, FechaEn = Convert.ToDateTime("2019/05/06"), FechaDev = Convert.ToDateTime("2019/05/06"), HoraDev = ("8:00"), EstadoID = 1
            });
            List <Reserva> reservas = rDAL.ReservaList("Activo");
            Reserva        reserva  = reservas.OrderByDescending(rr => rr.ReservaID).FirstOrDefault();
            Reserva        re       = rDAL.FindReserva(reserva.ReservaID);

            Assert.IsTrue(re.ReservaID > 0 && reserva.VehiculoID == re.VehiculoID && reserva.FechaEn == re.FechaEn && reserva.FechaDev == re.FechaDev && reserva.HoraDev == re.HoraDev && reserva.EstadoID == re.EstadoID);
        }
Esempio n. 2
0
 public Reserva FindReserva(int id)
 {
     return(DAL.FindReserva(id));
 }