public TextFileController(ITextFileRepository textFileRepository, INameSortRepository nameSortRepository, IMemoryCache memoryCache, ILogger <TextFileController> logger)
 {
     _textFileRepository = textFileRepository;
     _nameSortRepository = nameSortRepository;
     _memoryCache        = memoryCache;
     _logger             = logger;
 }
示例#2
0
 public Shabdkosh_UnitTest1()
 {
     //arrange
     fileRepository   = new TextFileRepository();
     textOperation    = new TextOperation();
     shabdkoshService = new ShabdkoshService(fileRepository, textOperation);
 }
示例#3
0
        public ShabdkoshService(ITextFileRepository fileRepository, ITextOperation textOperation)
        {
            _textOperation = textOperation;
            string text = fileRepository.ReadTextFile();

            occuranceOfAWord = _textOperation.Text2DictWordOccurance(text);
        }
 public NumberJumbler(ITextFileRepository textFileRepository)
 {
     _textFileRepository = textFileRepository;
 }
示例#5
0
 public FindDefinitionByKeywordHandler(ITextFileRepository fileRepository, ITextOperation textOperation)
 {
     this.fileRepository = fileRepository ?? throw new ArgumentNullException(nameof(fileRepository));
     this._textOperation = textOperation ?? throw new ArgumentNullException(nameof(textOperation));
 }
 public BoardCoordinatesRepository(ITextFileRepository textFileRepository)
 {
     _textFileRepository = textFileRepository;
 }
 public BoardRepository(ITextFileRepository textFileRepository)
 {
     _textFileRepository = textFileRepository;
 }
示例#8
0
 public TextService(ITextFileRepository textFileRepository, ILogger <TextService> logger)
 {
     _textFileRepository = textFileRepository;
     _logger             = logger;
 }
示例#9
0
 public PlayerRepository(ITextFileRepository textFileRepository)
 {
     _textFileRepository = textFileRepository;
 }