Ejemplo n.º 1
0
        public AuthorService()
        {
            var context = new DAL.EF.LibraryContext();

            _authorInBookRepository = new AuthorInBookRepository(context);
            _authorRepository       = new AuthorRepository(context);
            _bookRepository         = new BookRepository(context);
        }
Ejemplo n.º 2
0
 public AuthorService(AuthorRepository authorRepository, AuthorInBookRepository authorInBookRepository)
 {
     _authorRepository       = authorRepository;
     _authorInBookRepository = authorInBookRepository;
 }
Ejemplo n.º 3
0
 public BookService(BookRepository bookRepository, AuthorInBookRepository authorInBookRepository, PublicHouseInBookRepository publicHouseInBookRepository)
 {
     _bookRepository              = bookRepository;
     _authorInBookRepository      = authorInBookRepository;
     _publicHouseInBookRepository = publicHouseInBookRepository;
 }