Ejemplo n.º 1
0
        public void IsContainedBy_Should_Return_True_When_Checkin_Date_Is_Not_Contained_In_Range()
        {
            // SETUP
            var participantCheckinDate = new DateTime(2018, 05, 10, 21, 30, 40);
            var participantCheckin     = new Checkin(Email.Of("*****@*****.**"), participantCheckinDate);

            var periodStartingDate = new DateTime(2018, 10, 09);
            var periodEndingDate   = new DateTime(2018, 12, 02);

            var period = new Period(periodStartingDate, periodEndingDate);

            // RUN
            bool isCheckinDateContainedInPeriod = participantCheckin.IsContainedBy(period);

            // ASSERT
            Check.That(isCheckinDateContainedInPeriod).IsFalse();
        }