public void Setup() { _cachedWordsRepository = Substitute.For <ICachedWordsRepository>(); _wordRepository = Substitute.For <IWordRepository>(); _anagramSolver = Substitute.For <IAnagramSolver>(); _cachedWordsService = new CachedWordsService(_cachedWordsRepository, _wordRepository, _anagramSolver); }
public static void SetServices() { CachedWordService = new CachedWordsService(CachedWordsRepositoy, WordRepository, Solver); UsersLogService = new UserLogService(UserLogRepository, new CachedWordsService(new CachedWordsEFCFRepository(), WordRepository, Solver)); }