コード例 #1
0
        public void BeforeEachTest()
        {
            WebApiApplication.InitializeAutoMapper();
            questionController       = new QuestionController();
            resultController         = new ResultController();
            responseOptionController = new ResponseOptionController();

            repository = new TestQuestionRepository();
            responseOptionController.QuestionRepository = repository;
            resultController.QuestionRepository         = repository;
            questionController.QuestionRepository       = repository;
        }