public void TestReservationPossibleInvalidPlayAt()
        {
            ReservationType resv = new ReservationType()
            {
                HowManyHours = 3,
                NumberOfPlayers = 20,
                PlayAt = DateTime.Now.AddDays(-1),
                TimeOfDay = TimeSpan.FromHours(13)
            };

            ReservationPossible request = new ReservationPossible() { Reservation = resv };
            ReservationPossibleValidator validator = new ReservationPossibleValidator();
            var response = validator.Validate(request);
            Assert.That(response.IsValid, Is.False);
            Assert.That(response.Errors[0].PropertyName, Is.EqualTo("Reservation.PlayAt"));
        }
        public void TestReservationPossibleValidRequest1()
        {
            ReservationType resv = new ReservationType()
            {
                HowManyHours = 2,
                NumberOfPlayers = 20,
                PlayAt = DateTime.Now.AddDays(1),
                TimeOfDay = TimeSpan.FromHours(13)
            };

            ReservationPossible request = new ReservationPossible() { Reservation = resv };
            ReservationPossibleValidator validator = new ReservationPossibleValidator();
            Assert.That(validator.Validate(request).IsValid, Is.True);
        }