コード例 #1
0
 public void Init()
 {
     courseData = Utilits.CreateCourse();
     courseData.SetUpLinks();
     userId                = "1";
     user                  = new ClaimsPrincipal(new ClaimsIdentity(new[] { new Claim(ClaimTypes.NameIdentifier, userId) }));
     courseProgressData    = courseData.CreateProgress(userId);
     courseProgressData.Id = $"{userId}{courseData.Id}";
     courseProgressData.SetUpLinks();
     controller = CreateProgressController();
 }
コード例 #2
0
 public void Init()
 {
     courseData = Utilits.CreateCourse();
     course     = courseData.ToApiModel();
     controller = CreateCourseController();
 }