Exemple #1
0
        public HomeController()
        {
            this.contextLivre = new SQLRepositoryLivre(new MyContext());
            SQLRepositoryUtilisateur contextUser = new SQLRepositoryUtilisateur(new MyContext());

            serviceUser = new UtilisateurService(contextUser);
        }
        public EchangeLivreController()
        {
            SQLRepositoryLivreEchange contextEchange = new SQLRepositoryLivreEchange(new MyContext());

            SQLRepositoryUtilisateur contextUser = new SQLRepositoryUtilisateur(new MyContext());

            serviceUser = new UtilisateurService(contextUser);

            serviceEchange = new EchangeLivreService(contextEchange);
        }