コード例 #1
0
        public LearningPath CreateGeneralLearningPath(string organizationId)
        {
            var generalLearningPath = new LearningPath("General", organizationId, isDeletable: false);

            generalLearningPath.UpdateDescription("The user default learning path when the user account is created");

            return(generalLearningPath);
        }
コード例 #2
0
ファイル: LearningPathTests.cs プロジェクト: imanys/Solen.Api
        public void UpdateDescription_WhenCalled_UpdateLearningPathDescription()
        {
            _sut.UpdateDescription("new description");

            Assert.That(_sut.Description, Is.EqualTo("new description"));
        }
コード例 #3
0
 public void UpdateDescription(LearningPath learningPath, string description)
 {
     learningPath.UpdateDescription(description);
 }