.. _DCB example 2: DCB 2 - Basic DCB Objects ========================= Here we meet the :doc:`course subscriptions challenge ` directly with DCB. Application ----------- The :class:`~examples.dcb_enrolment_with_basic_objects.application.EnrolmentWithDCB` application implements :ref:`the enrolment interface ` introduced on the previous page, using the basic :ref:`DCB objects ` included in this library, and the :ref:`DCB application ` class. Whilst the code is relatively verbose, the DCB approach can be understood directly without any extra abstractions. .. literalinclude:: ../../../examples/dcb_enrolment_with_basic_objects/application.py :pyobject: EnrolmentWithDCB Test case --------- The :ref:`enrolment test case ` is extended for :class:`~examples.dcb_enrolment_with_basic_objects.application.EnrolmentWithDCB`. .. literalinclude:: ../../../examples/dcb_enrolment_with_basic_objects/test_application.py :pyobject: TestEnrolmentWithDCB