/// <summary>
 /// Constructor for servicefactory
 /// </summary>
 public ServiceFactory()
 {
     bookCopyRepo = repoFactory.GetBookCopyrepository();
     bookRepo = repoFactory.GetBookRepository();
     authorRepo = repoFactory.GetAuthorRepository();
     loanRepo = repoFactory.GetLoanRepository();
     memberRepo = repoFactory.GetMemberRepository();
 }
Esempio n. 2
0
 public BookCopyService(RepositoryFactory repoFactory)
 {
     _bookCopyRepository = repoFactory.GetBookCopyRepository();
 }