//"Server=.;Database=PentruLaborator;Trusted_Connection=True;" providerName="System.Data.SqlClient" static void Main(string[] args) { ValidatorStudent val = new ValidatorStudent(); RepositoryStudenti repo = new RepositoryStudenti(val); RepositoryTeme repoT = new RepositoryTeme(new ValidatorTema()); RepositoryNote repoN = new RepositoryNote(new ValidatorNota()); StudentServices ctrlS = new StudentServices(repo); TemeServices ctrlT = new TemeServices(repoT); NoteServices ctrlN = new NoteServices(repoN, repo, repoT); Consola cons = new Consola(ctrlS, ctrlT, ctrlN); cons.runMenu(); }
public NoteServices(RepositoryNote repo, RepositoryStudenti repoS, RepositoryTeme repoT) { this.repo = repo; this.repoS = repoS; this.repoT = repoT; }
public StudentServices(RepositoryStudenti repo) { this.repo = repo; }