public Service(ParticipantDbRepo pdr, CursaDbRepo cdr, InscriereDbRepo idr, StaffDbRepo sdr) { this.pdr = pdr; this.cdr = cdr; this.idr = idr; this.sdr = sdr; }
static void Main() { ParticipantDbRepo pdr = new ParticipantDbRepo(); CursaDbRepo cdr = new CursaDbRepo(); InscriereDbRepo idr = new InscriereDbRepo(pdr, cdr); StaffDbRepo sdr = new StaffDbRepo(); Service service = new Service(pdr, cdr, idr, sdr); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1(service)); }
public InscriereDbRepo(ParticipantDbRepo pdrr, CursaDbRepo cdrr) { log.Info("Creating ParticipantDbRepo"); pdr = pdrr; cdr = cdrr; }