epambrest/quiz

Refactor TestController

Opened this issue · 0 comments

Description:

  1. Rename controller to TestCardController or something more meaningful.
  2. Implement all required logic in the TestCardService for getting/persisting required data from data layer.
  3. Move all business-sensitive logic to BL;
  4. Create independent data models for particular service;
  5. Do not expose any DAL model to Web layer;
  6. Cover BL service with unit tests.

Acceptance Criteria:

TestCardController must not contain any /Data (Repository, ApplicationDbContext, ...) dependency