public void deleteResRestaurantTest()
        {
            ResRestaurantRepository conec = new ResRestaurantRepository();

            deleteId = conec.deleteResRestaurant(addId);
            Assert.AreEqual(addId, deleteId);
        }
        public void updateResRestaurantTest()
        {
            ResRestaurantRepository conec = new ResRestaurantRepository();

            modifyId = conec.updateResRestaurant(1, addId);
            Assert.AreEqual(addId, modifyId);
        }
        public void addReservationTest()
        {
            restaurantId = RestaurantRepository.AddRestaurant(prueba);

            res = new Restaurant_res(
                "2019-07-28 00:00",
                1,
                "2019-05-30 00:17",
                5,
                restaurantId);

            addId = ResRestaurantRepository.addReservation(res);
            Assert.True(addId > 0);
        }
Exemplo n.º 4
0
        public void deleteResRestaurantTest()
        {
            restaurantId = RestaurantRepository.AddRestaurant(restaurant);
            reservation  = new Restaurant_res(
                "2019-07-28 00:00",
                1,
                "2019-05-30 00:17",
                5,
                restaurantId);

            addId = ResRestaurantRepository.addReservation(reservation);
            ActionResult <string> res = controller.Delete(addId);

            Assert.NotNull(res);
        }
 public void getResRestaurantTest()
 {
     //El  ID del usuario es 5
     resRestaurantList = ResRestaurantRepository.getResRestaurant(5);
     Assert.True(resRestaurantList.Count() >= 0);
 }