コード例 #1
0
 public void RunBeforeAnyTests()
 {
     _config = new ConfigurationBuilder()
               .AddJsonFile("appsettings.json")
               .Build();
     _courseRepository     = new CourseRepository(_config);
     _enrollmentRepository = new EnrollmentRepository(_config);
     _studentRepository    = new StudentRepository(_config);
     _enrollmentLogic      = new EnrollmentLogic(_studentRepository, _courseRepository, _enrollmentRepository);
 }
コード例 #2
0
 public StudentsController(IStudentLogic studentLogic, IEnrollmentLogic enrollmentLogic)
 {
     _enrollmentLogic = enrollmentLogic;
     _studentLogic    = studentLogic;
 }
コード例 #3
0
 public EnrollmentsController(IEnrollmentLogic enrollmentLogic)
 {
     _enrollmentLogic = enrollmentLogic;
 }