static void Main(string[] args) { StudentRepository repo = new StudentRepository(100); Validator val = new Validator(repo); StudentController ctrl = new StudentController(repo, val); UI.Console cons = new UI.Console(ctrl); cons.run(); }
public Validator(StudentRepository repo) { this.repo = repo; }
public StudentController(StudentRepository repo, Validator val) { this.repo = repo; this.val = val; }