Пример #1
0
        public void TrainingVideoManagerSelectVideosByEmployeeTest()
        {
            // arrange
            List <TrainingVideoVM> videos;
            ITrainingVideoManager  videoManager = new TrainingVideoManager(_trainingVideoAccessor);

            // act
            videos = videoManager.RetrieveTrainingVideosByEmployee();
            videos.AddRange(videoManager.RetrieveTrainingVideosByEmployee(true));
            // assert
            Assert.AreEqual(2, videos.Count);
        }
Пример #2
0
        public void TestRetrieveTrainingVideosByEmployeeWatched()
        {
            // arrange
            List <TrainingVideoVM> videos;
            ITrainingVideoManager  videoVMManager = new TrainingVideoManager(_trainingVideoAccessor);

            // act
            videos = videoVMManager.RetrieveTrainingVideosByEmployee(true);

            // assert
            Assert.AreEqual(1, videos.Count);
        }