/// <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(); }
public BookService(RepositoryFactory repoFactory) { _bookRepository = repoFactory.GetBookRepository(); }
public BookService() { _bookRepository = new BookRepository(); }