Esempio n. 1
0
        public WordsListForUser(IWordRepository wordRepository)
        {
            _wordRepository = wordRepository;
            _wordRepository = new InMemoryWordRepository();
            Guid[] guidArray = _wordRepository.GetGuidArray();

            for (int count = 0; count < guidArray.Length; count++)
            {
                _wordsInList.Add(guidArray[count], new WordInList(guidArray[count]));
            }
        }
Esempio n. 2
0
        protected GivenInMemoryWordRepository()
        {
            Fixture = new Fixture().Customize(new AutoMoqCustomization());
            var logger = Fixture.Create <ILogger <InMemoryWordRepository> >();

            InitialData = new List <Word>
            {
                new Word("hello"),
                new Word("goodbye"),
                new Word("simple"),
                new Word("list"),
                new Word("search"),
                new Word("filter"),
                new Word("yes"),
                new Word("no")
            };

            WordRepository = new InMemoryWordRepository(logger, InitialData);
        }