public void ConflictsWith_WhenParkingPeriodIsEqualToAnotherParkingPeriod_ShouldReturnTrue(
            Car car1,
            Car car2)
        {
            var initialDate = new DateTime(2020, 1, 1, 14, 0, 0);
            var endDate     = new DateTime(2020, 1, 1, 15, 0, 0);

            var sut = new ParkingPeriod(car1, initialDate, endDate);

            var result = sut.ConflictsWith(new ParkingPeriod(car2, initialDate, endDate));

            result.Should().BeTrue();
        }
        public void ConflictsWith_WhenParkingPeriodInitialDateIsBetweenAnotherParkingPeriod_ShouldReturnTrue(
            Car car1,
            Car car2)
        {
            var initialDate1 = new DateTime(2020, 1, 1, 14, 0, 0);
            var endDate1     = new DateTime(2020, 1, 1, 15, 0, 0);

            var initialDate2 = new DateTime(2020, 1, 1, 14, 59, 0);
            var endDate2     = new DateTime(2020, 1, 1, 15, 30, 0);

            var sut = new ParkingPeriod(car1, initialDate1, endDate1);

            var result = sut.ConflictsWith(new ParkingPeriod(car2, initialDate2, endDate2));

            result.Should().BeTrue();
        }
        public void ConflictsWith_WhenParkingPeriodInitialDateIsTheSameAsAnotherParkingPeriodEndDate_ShouldReturnFalse(
            Car car1,
            Car car2)
        {
            var initialDate1 = new DateTime(2020, 1, 1, 14, 0, 0);
            var endDate1     = new DateTime(2020, 1, 1, 15, 0, 0);

            var initialDate2 = new DateTime(2020, 1, 1, 15, 0, 0);
            var endDate2     = new DateTime(2020, 1, 1, 16, 0, 0);

            var sut = new ParkingPeriod(car1, initialDate1, endDate1);

            var result = sut.ConflictsWith(new ParkingPeriod(car2, initialDate2, endDate2));

            result.Should().BeFalse("Because I assume there is no problem in having a parking booked from 14h to 15h and another one from 15h to 16h for example.");
        }