コード例 #1
0
        public void Setup()
        {
            _wordRepoMock           = Substitute.For <IWordRepository>();
            _additionalWordRepoMock = Substitute.For <IAdditionalWordRepository>();
            _mapperMock             = Substitute.For <IMapper>();

            _wordService = new WordService(_wordRepoMock, _additionalWordRepoMock, _mapperMock);
        }
コード例 #2
0
 public WordService(IWordRepository wordRepository, IAdditionalWordRepository additionalWordRepo, IMapper mapper)
 {
     _wordRepository           = wordRepository;
     _additionalWordRepository = additionalWordRepo;
     _mapper = mapper;
 }