示例#1
0
文件: Program.cs 项目: csergiu/Labs
 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();
 }
示例#2
0
文件: Validator.cs 项目: csergiu/Labs
 public Validator(StudentRepository repo)
 {
     this.repo = repo;
 }
示例#3
0
 public StudentController(StudentRepository repo, Validator val)
 {
     this.repo = repo;
     this.val = val;
 }