public PoorMansDIFetchBookProcess( IDatabaseConnectionProvider connProvider, IFetchBookProvider bookProvider ) { _connProvider = connProvider; _bookProvider = bookProvider; _bookDataManager = new BookDataManager(_connProvider, _bookProvider); }
public PoorMansDIFetchBookProcess() { _connProvider = new DatabaseConnectionProvider(); _bookProvider = new FetchBookProvider(new SqlResourceLoader()); _bookDataManager = new BookDataManager(_connProvider, _bookProvider); }
/// <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; }