public PersonController(IPersonRepository personRepository, IAgeGroupRepository ageGroupRepository, ILogger logger, IMessageFinder message, IMapper <PersonModel, IPerson> mapper) { _personRepository = personRepository; _logger = logger; _message = message; _mapper = mapper; try { _ageGroups = ageGroupRepository.Find().Result; } catch (Exception ex) { _logger.Error(ex.ToString()); throw; } }
public PersonService(IPersonRepository personRepository, IAgeGroupRepository ageGroupRepository) { _personRepository = personRepository; _ageGroupRepository = ageGroupRepository; }
public AgeGroupControllerTests() { repo = Substitute.For <IAgeGroupRepository>(); underTest = new AgeGroupController(repo); }
public AgeGroupService(IAgeGroupRepository ageGroupRepository) { this.ageGroupRepository = ageGroupRepository; }
public Manager(IAgeGroupRepository ageRangeRepository, IPersonRepository personRepository) { _ageRangeRepository = ageRangeRepository; _personRepository = personRepository; }
public AgeGroupController(IAgeGroupRepository repo) { this.repo = repo; }