コード例 #1
0
        public void TrainingVideoManagerActivateInvalidVideo()
        {
            //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.ActivateTrainingVideo(video);
        }
コード例 #2
0
        public void TrainingVideoManageractivateDeactiveVideo()
        {
            //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.ActivateTrainingVideo(video);

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