public void AddReservaTest() { Reserva reserva = new Reserva { VehiculoID = 2, FechaEn = Convert.ToDateTime("2019/05/06"), FechaDev = Convert.ToDateTime("2019/05/06"), HoraDev = ("8:00"), EstadoID = 1 }; int r = rDAL.AddReserva(reserva); List <Reserva> reservas = rDAL.ReservaList("Activo"); Reserva re = reservas.OrderByDescending(rr => rr.ReservaID).FirstOrDefault(); Assert.IsTrue(r > 0 && reserva.VehiculoID == re.VehiculoID && reserva.FechaEn == re.FechaEn && reserva.FechaDev == re.FechaDev && reserva.HoraDev == re.HoraDev && reserva.EstadoID == re.EstadoID); }
public List <EN.Reserva> ReservaList(string state) { return(DAL.ReservaList(state)); }