//"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 Consola(StudentServices ctrlS1, TemeServices ctrlT1, NoteServices ctrlN1) { ctrlN = ctrlN1; ctrlS = ctrlS1; ctrlT = ctrlT1; }