コード例 #1
0
ファイル: ServiceAll.cs プロジェクト: roxif29/MPPProject-cs
 public ServiceAll(AngajatDbRepository angajatDbRepository, CursaDbRepository cursaDbRepository, InscriereDbRepository inscriereDbRepository, ParticipantDbRepository participantDbRepository)
 {
     AngajatDbRepository     = angajatDbRepository;
     CursaDbRepository       = cursaDbRepository;
     InscriereDbRepository   = inscriereDbRepository;
     ParticipantDbRepository = participantDbRepository;
 }
コード例 #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));
        }