Beispiel #1
0
        public void BookingContactDetailsTest()
        {
            _mockBookingRepo.Setup(x => x.IsAvailable(1, new DateTime(2020, 6, 30))).Returns(true);
            BookingViewModel bookingvm = new BookingViewModel()
            {
                Date           = new DateTime(2020, 6, 30),
                NumberOfGuests = 2,
                Room           = new Room()
                {
                    Id   = 1,
                    Size = 3
                }
            };
            var result = _bookingController.BookingContactDetails(bookingvm) as ViewResult;

            Assert.AreEqual("BookingContactDetails", result.ViewName);
        }