public GeneralLibraryLogic(IUserRepository userRep, IGenreRepository genreRep, IGeneralRepository generalRep, IBookRepository bookRep, IJournalRepository journalRep, ISaleRepository saleRep)
 {
     _generalRep     = generalRep;
     _userRep        = userRep;
     _generalRep     = generalRep;
     _genreRep       = genreRep;
     _bookRep        = bookRep;
     _journalRep     = journalRep;
     _saleRep        = saleRep;
     _saleService    = new SaleService(_saleRep);
     _userValidity   = new UserValidity(_userRep, _generalRep);
     _bookService    = new BookService(_bookRep, _genreRep, _saleService);
     _journalService = new JournalService(_journalRep, _genreRep, _saleService);
     _genereService  = new GenreService(_genreRep, _generalRep);
     _libraryQueries = new LibraryQueries(_bookRep, _journalRep);
 }
 public GeneralLibraryLogic()
 {
     SQLiteCreation.InitializeDatabase();
     _userRep        = new UserRepository();
     _saleRep        = new SaleRepository();
     _saleService    = new SaleService(_saleRep);
     _genreRep       = new GenreRepository();
     _generalRep     = new GeneralRepository(_genreRep);
     _bookRep        = new BookRepository(_genreRep);
     _journalRep     = new JournalRepository(_genreRep);
     _userValidity   = new UserValidity(_userRep, _generalRep);
     _bookService    = new BookService(_bookRep, _genreRep, _saleService);
     _journalService = new JournalService(_journalRep, _genreRep, _saleService);
     _genereService  = new GenreService(_genreRep, _generalRep);
     _libraryQueries = new LibraryQueries(_bookRep, _journalRep);
 }