public SingleTripPolicy(Age age, Sex gender, Destination destination, PeriodOfTravel duration, Tax tax)
 {
     this.age = age;
     this.gender = gender;
     this.destination = destination;
     this.duration = duration;
     this.tax = tax;
 }
        public void For14Days()
        {
            var subject = new PeriodOfTravel(14);

            Assert.Equal(90, subject.ApplyTo(100));
        }
        public void For31DaysDecline()
        {
            var subject = new PeriodOfTravel(31);

            Assert.Throws<DeclinedException>(delegate { subject.ApplyTo(100); });
        }
        public void For7Days()
        {
            var subject = new PeriodOfTravel(7);

            Assert.Equal(50, subject.ApplyTo(100));
        }
        public void For30Days()
        {
            var subject = new PeriodOfTravel(30);

            Assert.Equal(120, subject.ApplyTo(100));
        }