public ArchiveStartAndEndDateControl(Archive archive)
        {
            _registrationCreationDates = new SortedSet <DateTime>();

            _headPublicJournal  = Noark5TestHelper.GetJournalHead(ArkadeConstants.PublicJournalXmlFileName, archive);
            _headRunningJournal = Noark5TestHelper.GetJournalHead(ArkadeConstants.RunningJournalXmlFileName, archive);

            _periodSeparationIsSharp = Noark5TestHelper.PeriodSeparationIsSharp(archive);
        }
예제 #2
0
        public NumberOfJournalPosts(Archive archive)
        {
            try
            {
                _publicJournalNumberOfJournalPosts =
                    GetPostCountFromJournal(ArkadeConstants.PublicJournalXmlFileName, archive);

                _runningJournalNumberOfJournalPosts =
                    GetPostCountFromJournal(ArkadeConstants.RunningJournalXmlFileName, archive);
            }
            catch (Exception)
            {
                _testResults.Add(new TestResult(ResultType.Error, Location.Archive,
                                                Noark5Messages.NumberOfJournalPostsMessage_CouldNotReadFromJournals));
            }

            _periodSeparationIsSharp = Noark5TestHelper.PeriodSeparationIsSharp(archive);
        }