示例#1
0
        public void CanBeCancelledBy_AnotherUser_ReturnFalse()
        {
            var user        = new Unit_Tests.User();
            var reservation = new Unit_Tests.Reservation();

            var result = reservation.CanBeCancelledBy(user);

            Assert.IsFalse(result);
        }
示例#2
0
        public void CanCancelledBy_SameUserCancellingReservation_ReturnTrue()
        {
            var user        = new Unit_Tests.User();
            var reservation = new Unit_Tests.Reservation();

            var result = reservation.CanBeCancelledBy(user);

            Assert.IsTrue(result);
        }