public TopicsResourcesController(ITopicsResourcesBusinessLogic topicsResourcesBusinessLogic, ILuisBusinessLogic luisBusinessLogic, IUserRoleBusinessLogic userRoleBusinessLogic) { this.topicsResourcesBusinessLogic = topicsResourcesBusinessLogic; this.luisBusinessLogic = luisBusinessLogic; this.userRoleBusinessLogic = userRoleBusinessLogic; }
public LuisBusinessLogic(ILuisProxy luisProxy, ILuisSettings luisSettings, ITopicsResourcesBusinessLogic topicsResourcesBusinessLogic, IWebSearchBusinessLogic webSearchBusinessLogic, IBingSettings bingSettings) { this.luisSettings = luisSettings; this.luisProxy = luisProxy; this.topicsResourcesBusinessLogic = topicsResourcesBusinessLogic; this.webSearchBusinessLogic = webSearchBusinessLogic; this.bingSettings = bingSettings; }
public PersonalizedPlanViewModelMapper(ICosmosDbSettings cosmosDbSettings, IDynamicQueries dynamicQueries, ITopicsResourcesBusinessLogic topicsResourcesBusinessLogic, IBackendDatabaseService backendDatabaseService) { this.cosmosDbSettings = cosmosDbSettings; this.dynamicQueries = dynamicQueries; this.topicsResourcesBusinessLogic = topicsResourcesBusinessLogic; this.backendDatabaseService = backendDatabaseService; }
public QnABotBusinessLogic(IHttpClientService httpClientService, ILuisProxy luisProxy, ITopicsResourcesBusinessLogic topicsResourcesBusinessLogic, IQnAMakerSettings qnAMakerSettings, ILuisBusinessLogic luisBusinessLogic) { this.qnAMakerSettings = qnAMakerSettings; this.luisProxy = luisProxy; this.httpClientService = httpClientService; this.luisBusinessLogic = luisBusinessLogic; this.topicsResourcesBusinessLogic = topicsResourcesBusinessLogic; }
public ServiceProvidersBusinessLogicTests() { dynamicQueries = Substitute.For <IDynamicQueries>(); cosmosDbSettings = Substitute.For <ICosmosDbSettings>(); backendDatabaseService = Substitute.For <IBackendDatabaseService>(); topicsResourcesSettings = Substitute.For <ITopicsResourcesBusinessLogic>(); serviceProvidersBusinessLogic = new ServiceProvidersBusinessLogic(dynamicQueries, cosmosDbSettings, backendDatabaseService); cosmosDbSettings.AuthKey.Returns("dummykey"); cosmosDbSettings.Endpoint.Returns(new System.Uri("https://bing.com")); cosmosDbSettings.DatabaseId.Returns("dbname"); cosmosDbSettings.TopicsCollectionId.Returns("TopicCollection"); cosmosDbSettings.ResourcesCollectionId.Returns("ResourceCollection"); }
public AdminBusinessLogic(IDynamicQueries dynamicQueries, ICosmosDbSettings cosmosDbSettings, IBackendDatabaseService backendDatabaseService, IHostingEnvironment hostingEnvironment, ICuratedExperienceConvertor a2jAuthorBuisnessLogic, IAdminSettings adminSettings, ITopicsResourcesBusinessLogic topicsResourcesBusinessLogic) { this.dynamicQueries = dynamicQueries; this.cosmosDbSettings = cosmosDbSettings; this.backendDatabaseService = backendDatabaseService; this.hostingEnvironment = hostingEnvironment; this.a2jAuthorBuisnessLogic = a2jAuthorBuisnessLogic; this.adminSettings = adminSettings; this.topicsResourcesBusinessLogic = topicsResourcesBusinessLogic; }
public AdminBusinessLogicTests() { dynamicQueries = Substitute.For <IDynamicQueries>(); cosmosDbSettings = Substitute.For <ICosmosDbSettings>(); dbService = Substitute.For <IBackendDatabaseService>(); hostingEnvironment = Substitute.For <IHostingEnvironment>(); a2jAuthorBuisnessLogic = Substitute.For <ICuratedExperienceConvertor>(); adminSettings = Substitute.For <IAdminSettings>(); topicsResourcesBusinessLogic = Substitute.For <ITopicsResourcesBusinessLogic>(); adminBusiness = new AdminBusinessLogic(dynamicQueries, cosmosDbSettings, dbService, hostingEnvironment, a2jAuthorBuisnessLogic, adminSettings, topicsResourcesBusinessLogic); cosmosDbSettings.CuratedExperiencesCollectionId.Returns("CuratedExperiences"); cosmosDbSettings.GuidedAssistantAnswersCollectionId.Returns("GuidedAssistantAnswers"); cosmosDbSettings.A2JAuthorDocsCollectionId.Returns("A2JAuthorDocs"); }
public PersonalizedPlanBussinessLogicTests() { dbService = Substitute.For <IBackendDatabaseService>(); dbSettings = Substitute.For <ICosmosDbSettings>(); dynamicQueries = Substitute.For <IDynamicQueries>(); userProfileBusinessLogic = Substitute.For <IUserProfileBusinessLogic>(); personalizedPlanBusinessLogicSettings = Substitute.For <IPersonalizedPlanBusinessLogic>(); topicsResourcesBusinessLogic = Substitute.For <ITopicsResourcesBusinessLogic>(); personalizedPlanBusinessLogic = new PersonalizedPlanBusinessLogic(dbSettings, dbService, dynamicQueries, userProfileBusinessLogic, personalizedPlanEngine, personalizedPlanViewModelMapper); personalizedPlanBusinessLogicViewModelMapper = new PersonalizedPlanViewModelMapper(dbSettings, dynamicQueries, topicsResourcesBusinessLogic, dbService); dbSettings.ActionPlansCollectionId.Returns("ActionPlans"); dbSettings.A2JAuthorDocsCollectionId.Returns("A2JAuthorDocs"); dbSettings.GuidedAssistantAnswersCollectionId.Returns("GuidedAssistantAnswers"); dbSettings.ProfilesCollectionId.Returns("Profiles"); dbSettings.ResourcesCollectionId.Returns("Resources"); }
public LuisBusinessLogicTests() { luisProxy = Substitute.For <ILuisProxy>(); luisSettings = Substitute.For <ILuisSettings>(); topicsResourcesBusinessLogic = Substitute.For <ITopicsResourcesBusinessLogic>(); webSearchBusinessLogic = Substitute.For <IWebSearchBusinessLogic>(); luis = Substitute.For <ILuisBusinessLogic>(); bingSettings = Substitute.For <IBingSettings>(); luisBusinessLogic = new LuisBusinessLogic(luisProxy, luisSettings, topicsResourcesBusinessLogic, webSearchBusinessLogic, bingSettings); luisSettings.Endpoint.Returns(new Uri("http://www.bing.com")); luisSettings.TopIntentsCount.Returns(3); luisSettings.IntentAccuracyThreshold.Returns(0.1M); bingSettings.BingSearchUrl.Returns(new Uri("http://www.bing.com?{0}{1}{2}")); bingSettings.CustomConfigId.Returns("0"); bingSettings.PageResultsCount.Returns((short)10); bingSettings.PageOffsetValue.Returns((short)1); }