Esempio n. 1
0
        public void GetAttemptCountForContinuousLearningQuizTest()
        {
            var response = new List <ContinuousLearningAssessmentQuizAttempts>
            {
                new ContinuousLearningAssessmentQuizAttempts {
                    attemptcount = 1
                }
            };

            _continuousLearningQuizAttempts.Setup(a => a.GetData(It.IsAny <FilterDefinition <ContinuousLearningAssessmentQuizAttempts> >(), It.IsAny <string>())).Returns(response);

            _dashboardAdapter = new DashboardAdapter(_curiousQuizAttempts.Object, _blindSpotQuizAttempts.Object, _continuousLearningQuizAttempts.Object,
                                                     _cultureObservationToolQuizAttempts.Object, _growthMindsetQuizAttempts.Object, _learningMythsQuizAttempts.Object, _makingTimeForMeQuizAttempts.Object,
                                                     _productivityZoneQuizAttempts.Object, _reflectionToolQuizAttempts.Object, _storyTellingForImpactQuizAttempts.Object, _settings.Object);

            var result = _dashboardAdapter.GetAttemptCountForContinuousLearningQuiz("");

            _continuousLearningQuizAttempts.Verify(a => a.GetData(It.IsAny <FilterDefinition <ContinuousLearningAssessmentQuizAttempts> >(), It.IsAny <string>()));
        }