コード例 #1
0
        public static void TestStatistic(CourtCase courtCase, DateTime statisticDate, int expectedValue, StatisticType statisticType)
        {
            var courtCaseRepertory  = new CourtCaseRepertory();
            var repertoryStatistics = new RepertoryStatistics(statisticDate, statisticType);

            CheckStatistics(0, repertoryStatistics, courtCaseRepertory);
            courtCaseRepertory.Add(courtCase);
            CheckStatistics(expectedValue, repertoryStatistics, courtCaseRepertory);
        }
コード例 #2
0
 private static void CheckStatistics(int expectedValue, RepertoryStatistics repertoryStatistics, CourtCaseRepertory courtCaseRepertory)
 {
     Assert.Equal(expectedValue, repertoryStatistics.GetStatisticValue(courtCaseRepertory));
 }