mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-10 16:12:26 +03:00
Fix code indentation issue
This commit is contained in:
parent
c495854f9f
commit
9ff771e28e
|
@ -29,17 +29,18 @@ We will build a CLI application that helps to search for the movies. Let's call
|
|||
|
||||
How does Movie Lister work?
|
||||
|
||||
- Application uses a movies database to search for the movies
|
||||
- Application can search the movies by:
|
||||
- Director's name
|
||||
- Year of the release
|
||||
- There is a movies database
|
||||
- Each movie has next fields:
|
||||
- Title
|
||||
- Year of the release
|
||||
- Director's name
|
||||
- The database can be in the next formats:
|
||||
- The database is distributed in two formats:
|
||||
- Csv
|
||||
- Sqlite
|
||||
- Application uses the movies database to search for the movies
|
||||
- Application can search for the movies by:
|
||||
- Director's name
|
||||
- Year of the release
|
||||
- Other database formats can be added later
|
||||
|
||||
Movie Lister is a naive example from Martin Fowler's article about the dependency injection and
|
||||
|
@ -51,7 +52,7 @@ Here is a class diagram of the Movie Lister application:
|
|||
|
||||
.. image:: cli-images/classes_01.png
|
||||
|
||||
The responsibilities are split that way:
|
||||
The responsibilities are split next way:
|
||||
|
||||
- ``MovieLister`` - is responsible for the search
|
||||
- ``MovieFinder`` - is responsible for the fetching from the database
|
||||
|
|
Loading…
Reference in New Issue
Block a user