Пример #1
0
 /// <param name="rFactory">A repository factory, so the service can create its own repository.</param>
 public AuthorService(RepositoryFactory rFactory)
 {
     this.authorRepository = rFactory.CreateAuthorRepository();
 }
Пример #2
0
 public AuthorService(RepositoryFactory repoFactory)
 {
     _authorRepository = repoFactory.GetAuthorRepository();
 }
Пример #3
0
 /// <summary>
 /// The construct for the AuthorService class, defines the EventHandler and AuthorRepo.
 /// </summary>
 /// <param name="updated">Eventhandler</param>
 /// <param name="repo4">AuthorRepository</param>
 public AuthorService(AuthorRepository repo)
 {
     authorRepo = repo;
 }