public BackofficeController( IQuizBackofficeService quizBackofficeService, IQuestionBackofficeService questionBackofficeService) { _quizBackofficeService = quizBackofficeService; _questionBackofficeService = questionBackofficeService; }
public QuizBackofficeService_Tests() { (var quiz, var questions) = QuizGenerator.GetQuizWithQuestions(); var quizMockRepo = new InMemoryRepository <Quiz>(quiz.ToEnumerableOfOne()); var questionMockRepo = new InMemoryRepository <Question>(questions.Append(stubQuestionOutsideQuiz)); var service = new QuizBackofficeService(quizMockRepo, questionMockRepo); _quizBackofficeService = service; }