/// <summary> /// Constructor. /// </summary> public AssignmentResultGenerator( IQuestionResultGenerator questionResultGenerator, IAssignmentScoreCalculator assignmentScoreCalculator) { _questionResultGenerator = questionResultGenerator; _assignmentScoreCalculator = assignmentScoreCalculator; }
/// <summary> /// Constructor. /// </summary> public AssignmentService( DatabaseContext dbContext, IAssignmentScoreCalculator assignmentScoreCalculator) { _dbContext = dbContext; _assignmentScoreCalculator = assignmentScoreCalculator; }
/// <summary> /// Returns a new assignments service. /// </summary> private static AssignmentService GetAssignmentService( DatabaseContext context, IAssignmentScoreCalculator assignmentScoreCalculator = null) { return new AssignmentService(context, assignmentScoreCalculator); }