コード例 #1
0
 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;
     }
 }
コード例 #2
0
ファイル: PersonService.cs プロジェクト: xiaowuwang/AgeRanger
 public PersonService(IPersonRepository personRepository, IAgeGroupRepository ageGroupRepository)
 {
     _personRepository   = personRepository;
     _ageGroupRepository = ageGroupRepository;
 }
コード例 #3
0
 public AgeGroupControllerTests()
 {
     repo      = Substitute.For <IAgeGroupRepository>();
     underTest = new AgeGroupController(repo);
 }
コード例 #4
0
 public AgeGroupService(IAgeGroupRepository ageGroupRepository)
 {
     this.ageGroupRepository = ageGroupRepository;
 }
コード例 #5
0
 public Manager(IAgeGroupRepository ageRangeRepository, IPersonRepository personRepository)
 {
     _ageRangeRepository = ageRangeRepository;
     _personRepository   = personRepository;
 }
コード例 #6
0
 public AgeGroupController(IAgeGroupRepository repo)
 {
     this.repo = repo;
 }