public void Can_Test_If_A_Given_ReportingPeriod_Is_Current( int currentYear, int currentMonth, int currentDay, string comparisonPeriodShortFormat, bool expectedComparisonResult) { var comparisonPeriod = Period.ParsePeriodString(comparisonPeriodShortFormat); var mockDateTimeService = new Mock <IDateTimeService>(); mockDateTimeService .Setup( m => m.UtcNow) .Returns( DateTime .SpecifyKind( new DateTime(currentYear, currentMonth, currentDay), DateTimeKind.Utc)); var SUT = new PeriodService(mockDateTimeService.Object); SUT .PeriodIsCurrent(comparisonPeriod) .Should() .Be(expectedComparisonResult); }