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(); }
public void Init() { courseData = Utilits.CreateCourse(); course = courseData.ToApiModel(); controller = CreateCourseController(); }