コード例 #1
0
        public void can_list_reservations()
        {
            //arrange
            IReservationsService service = new ReservationsService(_database);

            //get all reservations
            var reservations = Task.Run(async() => await service.GetReservations());
            var results      = reservations.Result;

            //assert
            Assert.IsNotNull(results);
            Assert.IsTrue(reservations.Result.Count == 1);
        }