Exemplo n.º 1
0
 public TestController(IUserTestService userTestService, ICategoryService categoryService, IMappingProvider mappingProvider, ITestService testService)
 {
     this.userTestService = userTestService;
     this.categoryService = categoryService;
     this.mappingProvider = mappingProvider;
     this.testService     = testService;
 }
 public HomeController(IMappingProvider mapper, ITestService testService,
                       IUserManagerProvider userManager, IQuestionService questionService,
                       ICategoryService categoryService, IUserTestService userTestService,
                       IUserAnswerService answerService)
 {
     this.mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.testService     = testService ?? throw new ArgumentNullException(nameof(testService));
     this.userManager     = userManager ?? throw new ArgumentNullException(nameof(userManager));
     this.questionService = questionService ?? throw new ArgumentNullException(nameof(questionService));
     this.categoryService = categoryService ?? throw new ArgumentNullException(nameof(categoryService));
     this.userTestService = userTestService ?? throw new ArgumentNullException(nameof(userTestService));
     this.answerService   = answerService ?? throw new ArgumentNullException(nameof(answerService));
 }
Exemplo n.º 3
0
 public StatisticPresenter(IUserTestService userTestService, ISecurityManager securityManager)
 {
     _userTestService = userTestService;
     _securityManager = securityManager;
 }
Exemplo n.º 4
0
 public UserManagementTests(TestApplicationFactory factory) : base(factory)
 {
     testService = Services.GetRequiredService <IUserTestService>();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Конструктор презентера
 /// </summary>
 /// <param name="userTestService"></param>
 /// <param name="testService"></param>
 public TestPresenter(IUserTestService userTestService, ITestService testService)
 {
     _userTestService = userTestService;
     _testService     = testService;
 }
Exemplo n.º 6
0
 public UserTestController(IUserTestService userTestService)
 {
     _userTestService = userTestService;
 }
Exemplo n.º 7
0
 public HomeController(ICategoryService categoryService, IUserTestService userTestService, IMappingProvider mappingProvider)
 {
     this.categoryService = categoryService;
     this.userTestService = userTestService;
     this.mappingProvider = mappingProvider;
 }