public void TestNowyPensjonat() { AdditionalMethods model = new AdditionalMethods(); Assert.AreEqual(0, model.DisplayGuests().Count); Assert.AreEqual(0, model.DisplayRooms().Count); }
public void TestAddGuest() { AdditionalMethods model = new AdditionalMethods(); model.AddGuest("Łucja", "Wołkowicz", "Polish"); Assert.AreEqual(1, model.DisplayGuests().Count); Assert.AreEqual(0, model.DisplayRooms().Count); }
public void TestReservation() { AdditionalMethods model = new AdditionalMethods(); model.AddGuest("Łucja", "Wołkowicz", "Polish"); model.DisplayRooms().Add(new Room(1, 200, RoomType.doublebed)); model.AddReservation(1, RoomType.doublebed); Assert.AreEqual(1, model.DisplayGuests()[0].NrofRoom); }
public void OdswiezShowedList() { this.ShowedList = null; this.ShowedList = model.DisplayGuests(); }