public void MakeGuest() { //arrange HumanFactory factory; Guest guest; Hotel hotel; Reception reception; //act hotel = new Hotel(); reception = (Reception)(from x in hotel.Roomlist where x.AreaType == "Reception" select x).ToList().Last(); factory = new HumanFactory(); guest = (Guest)factory.CreateGuest(reception, "5", reception.giveRoom(5), "1"); //assert Assert.AreEqual(1, guest.GuestId); Assert.AreEqual(reception, guest.CurrentPosition); Assert.AreEqual("5", guest.Wish); }