public QuestionsController(
     IModuleSessionDataService moduleSessionDataService,
     IAnswersDataService answersDataService,
     IQuestionsDataService questionsDataService,
     IMappingService mappingService)
 {
     this.moduleSessionDataService = moduleSessionDataService;
     this.answersDataService       = answersDataService;
     this.questionsDataService     = questionsDataService;
     this.mappingService           = mappingService;
 }
Beispiel #2
0
        public QuestionsControllerTests()
        {
            this.questionsDataService = new Mock <IQuestionsDataService>().Object;

            this.moduleSessionDataService = new Mock <IModuleSessionDataService>().Object;

            this.answersDataService = new Mock <IAnswersDataService>().Object;

            this.mappingService = new AutoMapperMappingService();

            this.questionsController = new QuestionsController(
                this.moduleSessionDataService,
                this.answersDataService,
                this.questionsDataService,
                this.mappingService);
        }