public void OpenCourtCaseShouldAppearInStatistics(string statisticDateString, string inputDateString, int expectedValue, StatisticType statisticType) { var statisticDate = DateTime.Parse(statisticDateString); var inputDate = DateTime.Parse(inputDateString); var courtCase = CourtCaseBuilder.BuildCourtCase(inputDate); StatisticVerification.TestStatistic(courtCase, statisticDate, expectedValue, statisticType); }
public void NewReopenedCourtCaseShouldAppearInStatistics(string statisticDateString, string inputDateString, string originalInputDateString, int expectedValue, StatisticType statisticType) { var statisticDate = DateTime.Parse(statisticDateString); var inputDate = DateTime.Parse(inputDateString); var originalInputDate = DateTime.Parse(originalInputDateString); var courtCase = CourtCaseBuilder.BuildCourtCase(inputDate, originalInputDate); StatisticVerification.TestStatistic(courtCase, statisticDate, expectedValue, statisticType); Assert.NotEqual(courtCase.InputDate, courtCase.OriginalInputDate); }