public SuggestionsViewModel( ISuggestionService suggestionService, ILocationService locationService) { _suggestionService = suggestionService; _locationService = locationService; }
public LuckyController( IHostingEnvironment hostingEnvironment, ISuggestionService suggestionService) { _hostingEnvironment = hostingEnvironment; _suggestionService = suggestionService; }
public SuggestionHandlerService(IVideoService videoService, ISongService songService, ISuggestionService suggestionService, IUserSuggestionService userSuggestionService) { m_videoService = videoService; m_songService = songService; m_suggestionService = suggestionService; m_userSuggestionService = userSuggestionService; }
public void Initialize() { var mockBookInformationService = _factory.CreateMock <IBooksInformationService>(); BookType book = new BookType(); List <BookType> bookList = new List <BookType>(); for (int i = 0; i < 10; i++) { BookType tempBook = new BookType(); tempBook.Id = i; bookList.Add(tempBook); } nonEmptyList = bookList; mockBookInformationService.Expects.Any.Method(_ => _.GetAllBooks()).WillReturn(bookList); mockBookInformationService.Expects.Any.Method(_ => _.GetBooksByCategoryId(0)).WithAnyArguments().WillReturn(bookList); mockBookInformationService.Expects.Any.Method(_ => _.GetBookTypeById(0)).WithAnyArguments().WillReturn(book); suggestionService = new SuggestionService(); orderInformationServiceMock = _factory.CreateMock <IOrderInformationsService>(); booksInformationServiceMock = _factory.CreateMock <IBooksInformationService>(); suggestionService.OrderInformationService = orderInformationServiceMock.MockObject; suggestionService.BooksInformationService = booksInformationServiceMock.MockObject; //TODO!! //AplicationScope.GlobalSuggestionCache = null }
/// <summary> /// Initializes a new instance of the <see cref="FourSuggestionsBoardViewModel" /> class. /// </summary> /// <param name="suggestionService">The suggestion service (obtained through DI).</param> /// <param name="eventAggregator">Provides pub/sub events (obtained through DI).</param> public FourSuggestionsBoardViewModel(ISuggestionService suggestionService, IEventAggregator eventAggregator) { this.suggestionService = suggestionService; eventAggregator.GetEvent <Events.TextUpdatedEvent>().Subscribe( () => { if (this.Suggestions == null) { this.Suggestions = new ObservableCollection <string>(); } this.Suggestions = suggestionService.ProvideSuggestions(); suggestionService.ClearMultiCharacterBuffer(); }, ThreadOption.BackgroundThread, true); eventAggregator.GetEvent <Events.MultiTextUpdatedEvent>().Subscribe( () => { if (this.Suggestions == null) { this.Suggestions = new ObservableCollection <string>(); } this.Suggestions = this.suggestionService.ProvideMultiCharacterSuggestions(); }, ThreadOption.BackgroundThread, true); }
public TigerController(IDataStore dataStore, ISuggestionService suggestionService, IUserProfileStore userProfileStore) { this._dataStore = dataStore; this._suggestionService = suggestionService; this._provider = new Phi.OpenWeatherMapProvider.DataProvider(); this._userProfileStore = userProfileStore; }
public SearchDataService(IHttpContextAccessor httpContext, IGoogleService googleService, IContextFactory contextFactory, ISuggestionService suggestionService) : base(contextFactory) { this.httpContext = httpContext; this.googleService = googleService; this.contextFactory = contextFactory; this.suggestionService = suggestionService; }
public SuggestionsViewModel( ISuggestionService suggestionService, ILocationService locationService) { this.suggestionService = suggestionService; this.locationService = locationService; }
public IndexModel(IUserService userService, IArticleService articleService, ISuggestionService suggestionService, IHttpContextAccessor httpContextAccessor) { this.userService = userService; this.articleService = articleService; this.suggestionService = suggestionService; User_ = httpContextAccessor.HttpContext.User; }
public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IEmployeeService employeeService, ISuggestionService suggestionService, IDepartmentService departmentService, ApplicationRoleManager roleManager) : base(userManager, employeeService, roleManager) { this.userManager = userManager; SignInManager = signInManager; this.employeeService = employeeService; this.suggestionService = suggestionService; this.departmentService = departmentService; }
public SuggestionController(ILogger <SuggestionController> logger, ISuggestionService service, IMapper mapper, UserManager <User> userManager, ICategoryService categoryService) { _service = service; _logger = logger; _mapper = mapper; _userManager = userManager; _categoryService = categoryService; }
public SuggestionCommentController(ILogger <SuggestionCommentController> logger, ISuggestionCommentService service, IMapper mapper, UserManager <User> userManager, ISuggestionService suggestionService) { _service = service; _logger = logger; _mapper = mapper; _userManager = userManager; _suggestionService = suggestionService; }
public SearchController(ApplicationUserManager userManager, IEmployeeService employeeService, ApplicationRoleManager roleManager, IBranchService branchService, IDepartmentService departmentService, ISuggestionService suggestionService, ICompanyService companyService) : base(userManager, employeeService, roleManager) { this.branchService = branchService; this.departmentService = departmentService; this.suggestionService = suggestionService; this.companyService = companyService; this.companyService = companyService; }
public SuggestionController(ILogProvider logProvider, ISuggestionService srv) { if (_logger == null) { _logger = logProvider.GetLogger(typeof(SuggestionController).FullName); } _suggestionService = srv; }
public void Initialize() { suggestionService = new SuggestionService(); orderInformationServiceMock = _factory.CreateMock<IOrderInformationsService>(); booksInformationServiceMock = _factory.CreateMock<IBooksInformationService>(); suggestionService.OrderInformationService = orderInformationServiceMock.MockObject; suggestionService.BooksInformationService = booksInformationServiceMock.MockObject; }
public NodeService( IUnitOfWork db, ISuggestionService suggestionService, ICommentsService commentsService) { this._db = db; _suggestionService = suggestionService; _commentsService = commentsService; }
public void Initialize() { suggestionService = new SuggestionService(); orderInformationServiceMock = _factory.CreateMock <IOrderInformationsService>(); booksInformationServiceMock = _factory.CreateMock <IBooksInformationService>(); suggestionService.OrderInformationService = orderInformationServiceMock.MockObject; suggestionService.BooksInformationService = booksInformationServiceMock.MockObject; }
public PostsController( IPostService postService, ISuggestionService suggestionService, IReactionService reactionService) { _postService = postService; _suggestionService = suggestionService; _reactionService = reactionService; }
public SearchControllerTest(IHttpContextAccessor http, IContextFactory factory, IMapper mapper, ISearchDataService service, IGoogleService googleService, ISuggestionService suggestionService) : base(http, factory) { //Configure identity this.mapper = mapper; this.service = service; this.googleService = googleService; CreateIdentity(Users[0].Auth); this.suggestionService = suggestionService; }
public AnswerController(IAnswerService answerService, IProfanityService profanityService, ISuggestionService suggestionService, IUserService userService, IAntiforgery antiforgery, IStatisticsService statisticsService) { _answerService = answerService; _profanityService = profanityService; _suggestionService = suggestionService; _userService = userService; _antiforgery = antiforgery; _statisticsService = statisticsService; }
/// <summary> /// Initializes a new instance of the <see cref="MultiKeyboardViewModel" /> class. /// </summary> /// <param name="eventAggregator">Provides pub/sub events (obtained through DI).</param> /// <param name="suggestionService">The suggestion service (obtained through DI).</param> public MultiKeyboardViewModel( IEventAggregator eventAggregator, ISuggestionService suggestionService) { this.eventAggregator = eventAggregator; this.suggestionService = suggestionService; this.AddMultiCharacterCommand = new DelegateCommand <string>(this.AddMultiCharacter); this.RemoveLastMultiCharacterCommand = new DelegateCommand(this.RemoveLastMultiCharacter); Commands.AddMultiCharacterTextCommand.RegisterCommand(this.AddMultiCharacterCommand); Commands.RemoveLastMultiCharacterCommand.RegisterCommand(this.RemoveLastMultiCharacterCommand); }
public CategoryDemoService(CategoryService categoryService, FieldTemplateService fieldTemplateService, ISuggestionService suggestionService, VariantService variantService, ChannelService channelService) { _categoryService = categoryService; _fieldTemplateService = fieldTemplateService; _suggestionService = suggestionService; _variantService = variantService; _channelService = channelService; _categoryLookup = new Dictionary <string, Category>(); }
public HomeViewModel(ISuggestionService suggestionService, INewsService newsService, IMvxNavigationService navigationService) { _suggestionService = suggestionService; _newsService = newsService; _navigationService = navigationService; Suggestions = new MvxObservableCollection <Suggestion>(); News = new MvxObservableCollection <News>(); ShowDeliveryAddressCommand = new MvxAsyncCommand(async() => await _navigationService.Navigate <DeliveryAddressViewModel>()); }
public GetModel(IArticleService articleService, ISuggestionService suggestionService, IHttpContextAccessor httpContextAccessor) { this.articleService = articleService; this.suggestionService = suggestionService; this.httpContextAccessor = httpContextAccessor; User_ = httpContextAccessor.HttpContext.User; var claims = (httpContextAccessor.HttpContext.User.Claims.FirstOrDefault(x => x.Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier")); if (claims != null) { UserId = Convert.ToInt32(claims.Value); } }
public UserService(IMapper mapper, ILogger <UserService> logger, SuggestionBoardDbContext context, ISuggestionService suggestionService, ISuggestionCommentService suggestionCommentService, ISuggestionReactionService suggestionReactionService) { _con = context; _mapper = mapper; _logger = logger; _suggestionService = suggestionService; _suggestionCommentService = suggestionCommentService; _suggestionReactionService = suggestionReactionService; }
public CreateAnswerController(IAnswerService answerService, IProfanityService profanityService, ISuggestionService suggestionService, IUserService userService, IAntiforgery antiforgery, IStatisticsService statisticsService, IResourcesService resourcesService, ILoggerFactory loggerFactory) { _answerService = answerService; _profanityService = profanityService; _suggestionService = suggestionService; _userService = userService; _antiforgery = antiforgery; _statisticsService = statisticsService; _resourcesService = resourcesService; _logger = loggerFactory.CreateLogger <CreateAnswerController>(); _logger.LogInformation("created CreateAnswerController"); }
public KnowledgeSessionApiController( IKnowledgeSessionService knowledgeSessionService, IKnowledgeSessionMemberService knowledgeSessionMemberService, INodeService nodeService, ISuggestionService suggestionService, INodeModificationService nodeModificationService, ICommentsService commentsService, INodeResourceService nodeResourceService, ITextMergeSuggestionService textMergeSuggestionService) { _knowledgeSessionService = knowledgeSessionService; _knowledgeSessionMemberService = knowledgeSessionMemberService; _nodeService = nodeService; _suggestionService = suggestionService; _nodeModificationService = nodeModificationService; _commentsService = commentsService; _nodeResourceService = nodeResourceService; _textMergeSuggestionService = textMergeSuggestionService; }
public UserSuggestionsController(ISuggestionService suggestionService, IMapper mapper) { _suggestionService = suggestionService; _mapper = mapper; }
public SuggestionsServiceTest(ISuggestionService service, IHttpContextAccessor http, IContextFactory factory) : base(http, factory) { this.service = service; this.http = http; }
public SuggestionController(ISuggestionService suggestionService) { _suggestionService = suggestionService; }
public HomeController(ISuggestionService suggestionService, IRecentActivityService recentService) { _suggestionService = suggestionService; _recentService = recentService; }
public ChangeStatus(ISuggestionService suggestionService) { this.suggestionService = suggestionService; }
public SuggestionController(ISuggestionService suggestionService, IEmployeeService employeeService, ApplicationUserManager userManager, ApplicationRoleManager roleManager) : base(userManager, employeeService, roleManager) { this.suggestionService = suggestionService; }
public void Initialize() { var mockBookInformationService = _factory.CreateMock<IBooksInformationService>(); BookType book = new BookType(); List<BookType> bookList = new List<BookType>(); for (int i = 0; i < 10; i++) { BookType tempBook = new BookType(); tempBook.Id = i; bookList.Add(tempBook); } nonEmptyList = bookList; mockBookInformationService.Expects.Any.Method(_ => _.GetAllBooks()).WillReturn(bookList); mockBookInformationService.Expects.Any.Method(_ => _.GetBooksByCategoryId(0)).WithAnyArguments().WillReturn(bookList); mockBookInformationService.Expects.Any.Method(_ => _.GetBookTypeById(0)).WithAnyArguments().WillReturn(book); suggestionService = new SuggestionService(); orderInformationServiceMock = _factory.CreateMock<IOrderInformationsService>(); booksInformationServiceMock = _factory.CreateMock<IBooksInformationService>(); suggestionService.OrderInformationService = orderInformationServiceMock.MockObject; suggestionService.BooksInformationService = booksInformationServiceMock.MockObject; //TODO!! //AplicationScope.GlobalSuggestionCache = null }