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); }
public StudentsController(IStudentLogic studentLogic, IEnrollmentLogic enrollmentLogic) { _enrollmentLogic = enrollmentLogic; _studentLogic = studentLogic; }
public EnrollmentsController(IEnrollmentLogic enrollmentLogic) { _enrollmentLogic = enrollmentLogic; }