Files
Nexus.Reader/src/.documentation/published/v5/files/NexusReader.Domain/Entities/QuizResult.md
T
2026-05-25 14:02:56 +02:00

2.3 KiB

QuizResult

  • File ID: file:1wyr0y8:quizresult-cs
  • Path: NexusReader.Domain/Entities/QuizResult.cs
  • Role: entity
  • Layer: domain

Purpose

Domain entity that models and persists the result of an AI-generated quiz taken by a user, including score, totals, tenant scoping and completion timestamp.

Key Details

Entity includes attribute metadata for EF (Key, Required, ForeignKey, MaxLength), default initializers (Guid.NewGuid, DateTime.UtcNow), and a computed Percentage property which guards against division by zero.

Symbols

  • QuizResult: Domain entity that models and persists the result of an AI-generated quiz taken by a user, including score, totals, tenant scoping and completion timestamp.
  • .ctor (implicit): Implicit object initializer that sets default values for several properties when a QuizResult is created.
  • Percentage (getter): Computes the score percentage of correct answers; guards against division by zero.
  • QuizResult: Represents a persisted quiz attempt by a user, including score details, topic and tenant context.

Dependencies

  • No resolved dependencies.

Calls

  • No resolved calls.

Coverage

  • Symbols: 4
  • Executable symbols: 2
  • Executable symbols with control flow: 2
  • Grounded edges: 4
  • Unresolved references: 0
  • Control-flow fragments: 2
  • Unresolved jumps: 0
  • Unsupported constructs: 0
  • Control-flow coverage: 100%
  • Required diagrams: 2
  • Generated diagrams: 2

Control Flow Fragments

  • .ctor (implicit): 7 nodes, 6 edges, 0 jumps, 0 unsupported constructs
  • Percentage (getter): 6 nodes, 6 edges, 0 jumps, 0 unsupported constructs

Diagrams

QuizResult Neighborhood

flowchart LR
    class_xbp5rm_quizresult("QuizResult")
    file_1wyr0y8_quizresult_cs("QuizResult")
    method_160zwvx_ctor_implicit[[".ctor (implicit)"]]
    method_ml3mse_percentage_getter[["Percentage (getter)"]]
    type_1j77tf7_quizresult[/"QuizResult"/]

QuizResult Execution Overview

flowchart TD
    class_xbp5rm_quizresult("QuizResult")
    method_160zwvx_ctor_implicit[[".ctor (implicit)"]]
    method_ml3mse_percentage_getter[["Percentage (getter)"]]
    class_xbp5rm_quizresult -->|contains| method_160zwvx_ctor_implicit
    class_xbp5rm_quizresult -->|contains| method_ml3mse_percentage_getter

Diagram Validation

  • Status: pass