Example #1
0
 public AuthorProvider(string connectionString)
 {
     authorRepository = new AuthorRepository(connectionString);
     novelRepository  = new NovelRepository(connectionString);
 }
Example #2
0
 public AuthorProvider(IAuthorRepository authorRepo, INovelRepository novelRepo)
 {
     this.authorRepo = authorRepo;
     this.novelRepo  = novelRepo;
 }
Example #3
0
 public NovelProvider(INovelRepository repo)
 {
     this.repo = repo;
 }