Exemple #1
0
 public ServiceAll(AngajatDbRepository angajatDbRepository, CursaDbRepository cursaDbRepository, InscriereDbRepository inscriereDbRepository, ParticipantDbRepository participantDbRepository)
 {
     AngajatDbRepository     = angajatDbRepository;
     CursaDbRepository       = cursaDbRepository;
     InscriereDbRepository   = inscriereDbRepository;
     ParticipantDbRepository = participantDbRepository;
 }
Exemple #2
0
        static MainView GetInstance()
        {
            var participantRepository = new ParticipantDbRepository();
            var probaRepository       = new ProbaDbRepository();
            var organizatorRepository = new OrganizatorDbRepository();
            var inscriereRepository   = new InscriereDbRepository();

            var service = new Service(participantRepository, probaRepository, organizatorRepository, inscriereRepository);

            return(new MainView(service));
        }