public void TestHauteCuisineRestaurant(List <int> tables, List <Reservation> reservations, Reservation reservation, bool expected) { // Arrange _sut = new MaitreDService(tables.ToArray()); foreach (var r in reservations) { _sut.Accept(r); } // Act var actual = _sut.CanAccept(reservation); actual.Should().Be(expected, $"{reservation}"); }
public void TestBoutiqueRestaurant(int capacity, List <Reservation> existingReservations, Reservation reservation, bool expected) { // Arrange _sut = new MaitreDService(capacity); foreach (var existingReservation in existingReservations) { _sut.Accept(existingReservation); } // Act var actual = _sut.CanAccept(reservation); // Assert actual.Should().Be(expected); }