public Initiator(IReasoningTaskService reasoningTaskService,
                  IReasoningTaskResolver reasoningTaskResolver,
                  ILogger <Initiator> logger
                  )
 {
     _reasoningTaskService  = reasoningTaskService;
     _reasoningTaskResolver = reasoningTaskResolver;
     _logger = logger;
 }
示例#2
0
 public ReasoningTaskService(
     IReasoningTaskRepository reasoningTaskRepository,
     IKnowledgeBaseRepository knowledgeBaseRepository,
     IReasoningService reasoningService,
     IReasoningTaskResolver reasoningTaskResolver,
     ILogger <ReasoningTaskService> logger
     )
 {
     _reasoningTaskRepository = reasoningTaskRepository;
     _knowledgeBaseRepository = knowledgeBaseRepository;
     _reasoningService        = reasoningService;
     _reasoningTaskResolver   = reasoningTaskResolver;
     _logger = logger;
 }
 private ReasoningTaskService MockReasoningTaskService(
     IReasoningTaskRepository reasoningTaskRepository = null,
     IKnowledgeBaseRepository knowledgeBaseRepository = null,
     IReasoningService reasoningService           = null,
     IReasoningTaskResolver reasoningTaskResolver = null
     )
 {
     return(new ReasoningTaskService(
                reasoningTaskRepository ?? Mock.Of <IReasoningTaskRepository>(),
                knowledgeBaseRepository ?? Mock.Of <IKnowledgeBaseRepository>(),
                reasoningService ?? Mock.Of <IReasoningService>(),
                reasoningTaskResolver ?? Mock.Of <IReasoningTaskResolver>(),
                Mock.Of <ILogger <ReasoningTaskService> >()
                ));
 }