public static TodoListRepository CreateTodoListRepository() { var configProvider = new ConfigProvider(); var connectionProvider = new ConnectionProvider(configProvider); var databaseProvider = new DatabaseProvider(connectionProvider); var dataStore = new DataStore(databaseProvider); return new TodoListRepository(dataStore); }
public DatabaseProvider(ConnectionProvider connectionProvider) { _connectionProvider = connectionProvider; }