Exemplo n.º 1
0
        public async Task TryCreateReservationWithInvalidRoom()
        {
            var time       = DateTime.Now;
            var newEndDate = new DateTime(time.Year, time.Month, time.Day);

            newEndDate = newEndDate.AddDays(1).AddHours(9).AddMinutes(30);

            if (time.DayOfWeek == DayOfWeek.Sunday)
            {
                time.AddDays(1);
            }
            Assert.AreEqual(-4, await _booking.CreateReservation(null, newEndDate, 1, dummyUser));
        }