/// <param name="rFactory">A repository factory, so the service can create its own repository.</param> public AuthorService(RepositoryFactory rFactory) { this.authorRepository = rFactory.CreateAuthorRepository(); }
public AuthorService(RepositoryFactory repoFactory) { _authorRepository = repoFactory.GetAuthorRepository(); }
/// <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; }