C# Class QuizProjectMvc.Services.Data.QuizzesEvalService

Inheritance: IQuizzesEvalService
Mostra file Open project: kidroca/project-quiz-mvc

Public Methods

Method Description
EvaluateSolution ( QuizSolution quizSolution ) : QuizEvaluationResult
EvaluateSolution ( int solutionId ) : QuizEvaluationResult
QuizzesEvalService ( IDbRepository quizzes, IDbRepository solutions ) : System
Save ( ) : void
SaveSolution ( SolutionForEvaluationModel quizSolution, string userId ) : QuizSolution

Private Methods

Method Description
ExtractSelectedAnswers ( Quiz quiz, SolutionForEvaluationModel quizSolution ) : List

Method Details

EvaluateSolution() public method

public EvaluateSolution ( QuizSolution quizSolution ) : QuizEvaluationResult
quizSolution QuizSolution
return QuizEvaluationResult

EvaluateSolution() public method

public EvaluateSolution ( int solutionId ) : QuizEvaluationResult
solutionId int
return QuizEvaluationResult

QuizzesEvalService() public method

public QuizzesEvalService ( IDbRepository quizzes, IDbRepository solutions ) : System
quizzes IDbRepository
solutions IDbRepository
return System

Save() public method

public Save ( ) : void
return void

SaveSolution() public method

public SaveSolution ( SolutionForEvaluationModel quizSolution, string userId ) : QuizSolution
quizSolution SolutionForEvaluationModel
userId string
return QuizSolution