コード例 #1
0
 /// <summary>
 /// Constructor for servicefactory
 /// </summary>
 public ServiceFactory()
 {
     bookCopyRepo = repoFactory.GetBookCopyrepository();
     bookRepo = repoFactory.GetBookRepository();
     authorRepo = repoFactory.GetAuthorRepository();
     loanRepo = repoFactory.GetLoanRepository();
     memberRepo = repoFactory.GetMemberRepository();
 }
コード例 #2
0
 /// <summary>
 /// Constructor for searchservice
 /// </summary>
 /// <param name="repo">loanrepo</param>
 public SearchService(LoanRepository repo)
 {
     loanRepo = repo;
 }
コード例 #3
0
ファイル: LoanService.cs プロジェクト: godiagonal/library
 public LoanService(RepositoryFactory repoFactory)
 {
     _loanRepository = repoFactory.GetLoanRepository();
 }