Exemplo n.º 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();
 }
Exemplo n.º 3
0
 public BookService(RepositoryFactory repoFactory)
 {
     _bookRepository = repoFactory.GetBookRepository();
 }
Exemplo n.º 4
0
 public BookService()
 {
     _bookRepository = new BookRepository();
 }