public void GetListOfGuests() { // Arrange IRoomAccess service = new RoomAccess(); service.GenerateBasicHotel(3, 2, 3); var guest1 = new Guest(fname: "Some", lname: "Body"); string roomNumber1 = service.GetRoomNumbers()[4]; service.AssignGuestToRoom(guest1, roomNumber1); var guest2 = new Guest(fname: "Noone", lname: "Special"); string roomNumber2 = service.GetRoomNumbers()[3]; service.AssignGuestToRoom(guest2, roomNumber2); var guest3 = new Guest(fname: "Short", lname: "Timer"); string roomNumber3 = service.GetRoomNumbers()[5]; service.AssignGuestToRoom(guest3, roomNumber3); service.UnassignGuestFromRoom(guest3, roomNumber3); // Act List<Guest> list = service.GetGuestList(); // Assert Assert.AreEqual(2, list.Count); Assert.AreEqual(1, list.FindAll(guest => guest.FirstName == "Some" && guest.LastName == "Body").Count); Assert.AreEqual(1, list.FindAll(guest => guest.FirstName == "Noone" && guest.LastName == "Special").Count); }