Пример #1
0
 public void Setup()
 {
     _cachedWordsRepository = Substitute.For <ICachedWordsRepository>();
     _wordRepository        = Substitute.For <IWordRepository>();
     _anagramSolver         = Substitute.For <IAnagramSolver>();
     _cachedWordsService    = new CachedWordsService(_cachedWordsRepository, _wordRepository, _anagramSolver);
 }
Пример #2
0
 public static void SetServices()
 {
     CachedWordService = new CachedWordsService(CachedWordsRepositoy, WordRepository, Solver);
     UsersLogService   = new UserLogService(UserLogRepository, new CachedWordsService(new CachedWordsEFCFRepository(), WordRepository, Solver));
 }