예제 #1
0
 /// <summary>
 /// Constructor takes in a RepositoryFactory enabling the service to create its own repositorys.
 /// </summary>
 /// <param name="rFactory"></param>
 public BookService(RepositoryFactory rFactory)
 {
     this.bookRepository = rFactory.CreateBookRepository();
 }
 public ItemService()
 {
     _bookRepository = new BookRepository();
 }
예제 #3
0
 public BookService(RepositoryFactory repoFactory)
 {
     _bookRepository = repoFactory.GetBookRepository();
 }
예제 #4
0
 public BookService()
 {
     _bookRepository = new BookRepository();
 }