コード例 #1
0
ファイル: LearningPathTests.cs プロジェクト: imanys/Solen.Api
        public void AddCourse_TheLearningPathHasNoCourse_AddTheCourseToLearningPathCoursesListWithOrder1()
        {
            _sut.AddCourse("courseId");

            Assert.That(_sut.LearningPathCourses.Count(x => x.CourseId == "courseId" && x.Order == 1),
                        Is.EqualTo(1));
        }
コード例 #2
0
 public void AddCourseToLearningPath(LearningPath learningPath, string courseId)
 {
     learningPath.AddCourse(courseId);
 }