Exemple #1
0
        public void TrainingVideoManagerDeactivateInvalidVideo()
        {
            //Arrange
            TrainingVideo video = new TrainingVideo()
            {
                TrainingVideoID = "C",
                RunTimeMinutes  = 1,
                RunTimeSeconds  = 1,
                Description     = "A",
                Active          = true
            };

            bool test;
            ITrainingVideoManager trainingVideoManager = new TrainingVideoManager(_trainingVideoAccessor);

            //Act
            test = trainingVideoManager.DeactivateTrainingVideo(video);
        }
Exemple #2
0
        public void TrainingVideoManagerDeactivateDeactiveVideo()
        {
            //Arrange
            TrainingVideo video = new TrainingVideo()
            {
                TrainingVideoID = "B",
                RunTimeMinutes  = 1,
                RunTimeSeconds  = 1,
                Description     = "A",
                Active          = false
            };

            bool test;
            ITrainingVideoManager trainingVideoManager = new TrainingVideoManager(_trainingVideoAccessor);

            //Act
            test = trainingVideoManager.DeactivateTrainingVideo(video);

            //Assert
            Assert.AreEqual(test, true);
        }