Beispiel #1
0
        public void Approve_WhenBookingIsCancelled_StatusIsNotChanged()
        {
            //Arrange
            var booking = new Booking()
            {
                PricePerDay = 5,
                From        = new DateTime(2018, 4, 4),
                To          = new DateTime(2018, 4, 11),
                Status      = BookingStatus.CANCELLEDBYHOST
            };

            //Act
            booking.Approve();

            //Assert
            Assert.IsTrue(booking.Status == BookingStatus.CANCELLEDBYHOST);
        }