Example #1
0
        public void ManagerGetAll_GetAllCompletes_ReturnsListHotel()
        {
            SetupSimple();
            List <Hotel> testHotelslList = null;

            try
            {
                testHotelslList = manager.Get(Fillables.FillHotel).ToList();
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message);
            }

            Clean();
            Assert.IsNotNull(testHotelslList);
            Assert.AreEqual(typeof(List <Hotel>), testHotelslList.GetType());
        }
 // GET: api/Users
 public IEnumerable <User> Get()
 {
     return(manager.Get(Fillables.FillUser));
 }
 // GET: api/Rooms
 public IEnumerable <Room> Get()
 {
     return(manager.Get(Fillables.FillRoom));
 }
 // GET: api/Hotels
 public IEnumerable <Hotel> Get()
 {
     return(manager.Get(Fillables.FillHotel));
 }
Example #5
0
 // GET: api/Guests
 public IEnumerable <Guest> Get()
 {
     return(manager.Get(Fillables.FillGuest));
 }
 // GET: api/Events
 public IEnumerable <Event> Get()
 {
     return(eventManager.Get(Fillables.FillEvent));
 }
 // GET: api/Bookings
 public IEnumerable <Booking> Get()
 {
     return(bookingSettingsManager.Get(Fillables.FillBooking)); //Fills a booking object by itself.
 }
 // GET: api/Bookings
 public IEnumerable <Booking> Get()
 {
     return(manager.Get(Fillables.FillBooking));
 }
 // GET: api/Admins
 public IEnumerable <Admin> Get()
 {
     return(adminManager.Get(Fillables.FillAdmin));
 }
 // GET: api/Speakers
 public IEnumerable <Speaker> Get()
 {
     return(speakerManager.Get(Fillables.FillSpeaker));
 }