示例#1
0
 public QAController(IQAService QAService,
                     IApplicationSignInManager signManager,
                     IMapper mapper,
                     IConfiguration configuration)
 {
     _QAService     = QAService;
     _signManager   = signManager;
     _mapper        = mapper;
     _configuration = configuration;
 }
示例#2
0
 public HomeController(IQAService qAService, ICommentService commentService, ICustomerService customerService, IMemberService memberService, IProductService productService, ICartService cartService, IOrderDetailService orderDetailService, IRatingService ratingService)
 {
     _memberService      = memberService;
     _productService     = productService;
     _cartService        = cartService;
     _orderDetailService = orderDetailService;
     _ratingService      = ratingService;
     _customerService    = customerService;
     _commentService     = commentService;
     _qAService          = qAService;
 }
 public ProductController(IProductService productService, /*IProducerService producerService*/ IMemberService memberService, IQAService qAService, IRatingService ratingService, IOrderDetailService orderDetailService, IEmployeeService emloyeeService)
 {
     _productService = productService;
     // _producerService = producerService;
     //_supplierService = supplierService;
     _memberService      = memberService;
     _qaService          = qAService;
     _emloyeeService     = emloyeeService;
     _ratingService      = ratingService;
     _orderDetailService = orderDetailService;
 }
 public CheckingController(IAccessTimesCountService accessTimesCountService, IDecentralizationService decentralizationService, IRoleService roleService, ISupplierService suplierService, IImportCouponDetailService importCouponDetailService, IImportCouponService importCouponService, IDiscountCodeService discountCodeService, IOrderService orderService, IQAService qAService, IProductService productService, IMemberService memberService, IEmployeeService employeeService, IEmployeeTypeService employeeTypeService)
 {
     _qAService                 = qAService;
     _productService            = productService;
     _memberService             = memberService;
     _employeeService           = employeeService;
     _employeeTypeService       = employeeTypeService;
     _orderService              = orderService;
     _discountCodeService       = discountCodeService;
     _importCouponService       = importCouponService;
     _importCouponDetailService = importCouponDetailService;
     _supplierService           = suplierService;
     _roleService               = roleService;
     _decentralizationService   = decentralizationService;
     _accessTimesCountService   = accessTimesCountService;
 }
        public QuestionnaireControllerTests()
        {
            _data = new List <QuestionDTO>();
            _data.Add(new QuestionDTO()
            {
                TypeId   = 1,
                Answer   = "Test",
                Question = "Test"
            });
            var serviceMock = new Mock <IQAService>();

            serviceMock.Setup(srv => srv.GetQuestions()).Returns(_data);

            serviceMock.Setup(srv => srv.SaveAnswers(_data)).Returns(true);

            _service = serviceMock.Object;
        }
示例#6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="qaService"></param>
 public PerguntasERespostasController(IQAService qaService)
 {
     _qaService = qaService;
 }
 public QuestionnaireController(IQAService service)
 {
     _service = service;
 }
示例#8
0
 public QuestionPresenter(IQAService qaService)
 {
     _qaService = qaService;
 }