public void GetByEventidAndTestId_ValidId_Tester()
        {
            var eventTest = _eventTestRepository.GetByEventAndTestId(24762, 2);

            Assert.IsNotNull(eventTest);
            Assert.AreEqual(eventTest.EventId, 24762);
            Assert.AreEqual(eventTest.Id, 196417);
            Assert.AreEqual(eventTest.TestId, 2);
        }
Exemple #2
0
        public string GetDependentTestsToRemove(long eventId, long testId)
        {
            var eventTest = _eventTestRepository.GetByEventAndTestId(eventId, testId);

            if (eventTest == null || eventTest.PreQualificationQuestionTemplateId == null)
            {
                return(string.Empty);
            }

            var dependentTests = _preQualificationTemplateDependentTestRepository.GetByTemplateId(eventTest.PreQualificationQuestionTemplateId.Value);

            return(string.Join(",", dependentTests.Select(x => x.TestId)));
        }