コード例 #1
0
 public PoorMansDIFetchBookProcess(
     IDatabaseConnectionProvider connProvider,
     IFetchBookProvider bookProvider
     )
 {
     _connProvider = connProvider;
     _bookProvider = bookProvider;
     _bookDataManager = new BookDataManager(_connProvider, _bookProvider);
 }
コード例 #2
0
 public PoorMansDIFetchBookProcess()
 {
     _connProvider       = new DatabaseConnectionProvider();
     _bookProvider       = new FetchBookProvider(new SqlResourceLoader());
     _bookDataManager    = new BookDataManager(_connProvider, _bookProvider);
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BookDataManager"/> class.
 /// </summary>
 /// <param name="databaseConnectionProvider">The database connection provider.</param>
 /// <param name="fetchBookProvider">The fetch book provider.</param>
 public BookDataManager(IDatabaseConnectionProvider databaseConnectionProvider,
                         IFetchBookProvider fetchBookProvider)
 {
     _databaseConnectionProvider = databaseConnectionProvider;
     _fetchBookProvider = fetchBookProvider;
 }