public CharacterServiceTests() { _characterRepository = Substitute.For <ICharacterRepository>(); _unitOfWork = Substitute.For <IUnitOfWork>(); _harryPotterApi = Substitute.For <IHarryPotterApi>(); _service = new CharacterService(_characterRepository, _unitOfWork, _harryPotterApi); }
public HarryPotterApiController(IHarryPotterApi repository) { _repository = repository; }
public CharacterService(ICharacterRepository repository, IUnitOfWork unitOfWork, IHarryPotterApi harryPotterApi) { _repository = repository; _unitOfWork = unitOfWork; _harryPotterApi = harryPotterApi; }