public PhrasesContextServices(IRepository <PhrasesContext> phrasesContext,
                               ILanguagesService langService,
                               IPhrasesService phrsService)
 {
     this.phrasesContext = phrasesContext;
     this.langService    = langService;
     this.phrsService    = phrsService;
 }
Example #2
0
 public PhrasesController(ILanguagesService langService,
                          IPhrasesService phrasesService,
                          IPhrasesContextServices phrasesContextService)
 {
     this.langService           = langService;
     this.phrasesService        = phrasesService;
     this.phrasesContextService = phrasesContextService;
 }
Example #3
0
 public AnagramSolver(IWordsService wordsService,
                      IPhrasesService phrasesService,
                      IUserLogsService userLogsService,
                      IUsersService usersService,
                      ICachedWordsService cachedWordsService,
                      IAppConfig appConfig)
 {
     _wordsService       = wordsService;
     _phrasesService     = phrasesService;
     _userLogsService    = userLogsService;
     _usersService       = usersService;
     _cachedWordsService = cachedWordsService;
     _appConfig          = appConfig;
 }
 public void Setup()
 {
     _phrasesRepository = Substitute.For <IPhrasesRepository>();
     _phrasesService    = new PhrasesService(_phrasesRepository);
 }
 public PhrasesController(IPhrasesService phrasesService, IPhrasesCollectorService phrasesCollectorService)
 {
     _phrasesService          = phrasesService ?? throw new ArgumentException(nameof(phrasesService));
     _phrasesCollectorService = phrasesCollectorService ?? throw new ArgumentException(nameof(phrasesCollectorService));
 }
Example #6
0
 public ResourcesController(IPhrasesService phrasesService, IPhrasesContextServices contextServices, ILanguagesService languagesService)
 {
     this.phrasesService   = phrasesService;
     this.contextServices  = contextServices;
     this.languagesService = languagesService;
 }
 public DragonBallController(IPhrasesService service, IPhrasesRepository phrasesRepository)
 {
     phrasesService         = service;
     this.phrasesRepository = phrasesRepository;
 }