public void Setup() { _wordRepoMock = Substitute.For <IWordRepository>(); _additionalWordRepoMock = Substitute.For <IAdditionalWordRepository>(); _mapperMock = Substitute.For <IMapper>(); _wordService = new WordService(_wordRepoMock, _additionalWordRepoMock, _mapperMock); }
public WordService(IWordRepository wordRepository, IAdditionalWordRepository additionalWordRepo, IMapper mapper) { _wordRepository = wordRepository; _additionalWordRepository = additionalWordRepo; _mapper = mapper; }