示例#1
0
        public async Task ScenarioOkay01TestAsync()
        {
            // arrange
            Reservation = new Reservation
            {
                CarId      = 1,
                CustomerId = 1,
                From       = new DateTime(Year, 12, 01),
                To         = new DateTime(Year, 12, 03)
            };
            // act
            var insertedReservation = await _target.Insert(Reservation);

            // assert
            Assert.True(_target.DateRangeCheck(Reservation));
            Assert.Equal(Reservation.CarId, insertedReservation.CarId);
        }