示例#1
0
        public CharacterServiceTests()
        {
            _characterRepository = Substitute.For <ICharacterRepository>();
            _unitOfWork          = Substitute.For <IUnitOfWork>();
            _harryPotterApi      = Substitute.For <IHarryPotterApi>();

            _service = new CharacterService(_characterRepository, _unitOfWork, _harryPotterApi);
        }
示例#2
0
 public HarryPotterApiController(IHarryPotterApi repository)
 {
     _repository = repository;
 }
示例#3
0
 public CharacterService(ICharacterRepository repository, IUnitOfWork unitOfWork, IHarryPotterApi harryPotterApi)
 {
     _repository     = repository;
     _unitOfWork     = unitOfWork;
     _harryPotterApi = harryPotterApi;
 }