/// <summary> /// Creates a new code question updater. /// </summary> private static QuestionUpdater<Question> GetQuestionUpdater( TestDatabase database, CodeQuestion question, IModelErrorCollection errors) { return new Mock<QuestionUpdater<Question>>(database.Context, question, errors).Object; }
/// <summary> /// Creates a new mock question duplicator. /// </summary> private static CodeQuestionDuplicator<CodeQuestion> GetCodeQuestionDuplicator( TestDatabase database, CodeQuestion question) { return new Mock<CodeQuestionDuplicator<CodeQuestion>>(database.Context, question).Object; }