public MessageController(ILuisService luis, IAnswerService answerService, IUnknownService issueService, IRedisCachingProvider redis, DingTalkHelper ddHelper, IDepartmentService departmentService, IPermissionService permissionService, IConfiguration configuration, IFeedbackService feedbackService, IAppSettings settings, ILogger <MessageController> logger, KnowledgeMapContext mapContext, DingDingApprovalService dingDingApprovalService) { _logger = logger; _settings = settings; _ddHelper = ddHelper; _configuration = configuration; _ddApprovalService = dingDingApprovalService; _luis = luis; _answerService = answerService; _issueService = issueService; _departService = departmentService; _redis = redis; _feedbackService = feedbackService; _permissionService = permissionService; _httpClient = HttpClientFactory.Create(); _mapContext = mapContext; }
public string DoSomethingWithResult(ITestService testService, IUnknownService unknownService, ITestService <int> testServiceInt) { TestService = testService; UnknownService = unknownService; TestServiceInt = testServiceInt; return(nameof(DoSomethingWithResult)); }
private static IDiContainer CreateContainerMock(ITestService testService, IUnknownService unknownService, ITestService <int> testServiceInt) { var container = A.Fake <IDiContainer>(); A.CallTo(() => container.GetInstance(typeof(ITestService))).Returns(testService); A.CallTo(() => container.GetInstance(typeof(IUnknownService))).Returns(unknownService); A.CallTo(() => container.GetInstance(typeof(ITestService <int>))).Returns(testServiceInt); return(container); }
public AnswerService(MoMoDbContext context, IRedisCacheService cache, IHttpContextAccessor httpContextAccessor, IUnknownService issueService, HttpClient httpClient, KnowledgeMapContext mapContext, ILogger <AnswerService> logger) { _httpContextAccessor = httpContextAccessor; _issueService = issueService; _cache = cache; _context = context; _httpClient = httpClient; _logger = logger; _mapContext = mapContext; }
public KnowledgesController(IUnknownService unknownService, IKnowledgeService knowledgeService) { _knowledgeService = knowledgeService; _unknownService = unknownService; }
public void DoSomething(ITestService testService, IUnknownService unknownService, ITestService <int> testServiceInt) { TestService = testService; UnknownService = unknownService; TestServiceInt = testServiceInt; }