public GamesController( IGamesService gamesService, ISuggestionsService suggestionsService) { this.gamesService = gamesService; this.suggestionsService = suggestionsService; }
public SuggestionsController(ISuggestionsService suggestionsService, IQuestionsService questionsService, INlpCall nlpService, IContexts contexts) : base(contexts) { this._suggestionsService = suggestionsService; this._questionsService = questionsService; this._nlpService = nlpService; }
public void SetUp() { this._indexSearchMock = new Mock <IIndexSearch>(); this._nlpCallMock = new Mock <INlpCall>(); this._documentFacetsMock = new Mock <IDocumentFacets>(); this._filterDocuments = new Mock <IFilterDocuments>(); this._suggestionsService = new SuggestionsService(this._indexSearchMock.Object, this._nlpCallMock.Object, this._documentFacetsMock.Object, this._filterDocuments.Object, this.GetIrrelevantIntents()); this._conversationContext = new ConversationContext(new Guid("a21d07d5-fd5a-42ab-ac2c-2ef6101e58d9"), DateTime.Now); }
public SuggestionsController( ISuggestionsService suggestionsService, UserManager <ApplicationUser> userManager, ICloudinaryHelper cloudinaryHelper, Cloudinary cloudinary, IVotesService votesService, IGamesService gamesService) { this.suggestionsService = suggestionsService; this.userManager = userManager; this.cloudinaryHelper = cloudinaryHelper; this.cloudinary = cloudinary; this.votesService = votesService; this.gamesService = gamesService; }
public void When_Intent_With_and_without_Wildcard__is_irrelevant(string wildcardString) { var query = SearchQueryBuilder.Build.WithQuery("I like C#").Instance; var intentsFromApi = new List <string> { wildcardString }; var intentsFromNLP = new List <Intent> { IntentBuilder.Build.WithName("I like C#").Instance }; this._suggestionsService = new SuggestionsService(this._indexSearchMock.Object, this._nlpCallMock.Object, this._documentFacetsMock.Object, this._filterDocuments.Object, intentsFromApi); var nlpAnalysis = NlpAnalysisBuilder.Build.WithIntents(intentsFromNLP).Instance; this.SetUpNLPCallMockToReturn(nlpAnalysis); ((SuggestionsService)this._suggestionsService).IsQueryRelevant(query).Should().BeFalse(); }
public SuggestionsListListViewModel(ISuggestionsService suggestionsService) { _suggestionsService = suggestionsService; Title = "Anbefalinger"; }
public RecipeSuggestionsHub(IUserService usersService, IRecipesService recipesService, ISuggestionsService suggestionsService) { this.usersService = usersService; this.recipesService = recipesService; this.suggestionsService = suggestionsService; }
public SuggestionsController(ISuggestionsService suggestions, ICommentService comments, IVoteService votes) { this.suggestions = suggestions; this.comments = comments; this.votes = votes; }
public SuggestionsController(ISuggestionsService suggestionsService) { this.suggestionsService = suggestionsService; }
public SuggestionsListViewModel(ISuggestionsService suggestionsService) { _suggestionsService = suggestionsService; }