Esempio n. 1
0
        //t
        public PeopleService(IPeopleRepo peopleRepo, IPersonLanguageRepo personLanguageRepo, ILanguageRepo languageRepo)

        {
            _personRepo         = peopleRepo;
            _personLanguageRepo = personLanguageRepo;
            _languageRepo       = languageRepo;
        }
Esempio n. 2
0
        public PeopleServiceTests()
        {
            _peopleRepo = Substitute.For <IPeopleRepo>();
            _placeRepo  = Substitute.For <IPlaceRepo>();

            _peopleService = new PeopleService(_peopleRepo, _placeRepo);
        }
Esempio n. 3
0
        public PeopleRepoTests()
        {
            _peopleStore = Substitute.For <IPeopleStore>();
            _fileService = Substitute.For <IFileService>();
            _jsonService = Substitute.For <IJsonService>();

            _peopleRepo = new PeopleRepo(_peopleStore, _fileService, _jsonService, Options.Create(new DataFileSettings()));
        }
 public LanguageService(ILanguageRepo languageRepo, IPeopleRepo peopleRepo, IPersonLanguageService personLangService, IPersonLangRepo personLangRepo, IPeopleServices peopleService)
 {
     _languageRepo      = languageRepo;
     _peopleRepo        = peopleRepo;
     _personLangService = personLangService;
     _personLangRepo    = personLangRepo;
     _peopleService     = peopleService;
 }
Esempio n. 5
0
 //private readonly ILanguageService _langService;
 public PeopleService(IPeopleRepo peopleRepo, IPersonLanguageService personLangservice) //, ILanguageService langService)
 {
     pr = peopleRepo;
     _personLangservice = personLangservice;
     // _langService = langService;
 }
Esempio n. 6
0
 public PeopleService(IPeopleRepo peopleRepo, IPlaceRepo placeRepo)
 {
     _peopleRepo = peopleRepo;
     _placeRepo  = placeRepo;
 }
Esempio n. 7
0
        //private readonly ICityService _cityService;

        /*public CityService(ICityRepo cityRepo, ICityService cityService)
         * {
         *  _cityRepo = cityRepo;
         *  _cityService = cityService;
         * }*/

        public CityService(ICityRepo cityRepo, IPeopleRepo peopleRepo)
        {
            _cityRepo   = cityRepo;
            _peopleRepo = peopleRepo;
        }
Esempio n. 8
0
 public PeopleController(IPeopleRepo repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Esempio n. 9
0
 public PeopleService(IPeopleRepo peopleRepo, ILanguageService languageService)
 {
     _languageService = languageService;
     _peopleRepo      = peopleRepo;
 }
Esempio n. 10
0
 public PeopleService(IPeopleRepo peopleRepo)
 {
     _peopleRepo = peopleRepo;
 }
Esempio n. 11
0
 public PeopleService(IPeopleRepo peopleRepo, IPersonGroupRepo personGroupRepo, ICityService cityService)
 {
     _peopleRepo      = peopleRepo;
     _personGroupRepo = personGroupRepo;
     _cityService     = cityService;
 }
Esempio n. 12
0
 public PeopleService(IPeopleRepo peopleRepo, ICityRepo cityRepo)
 {
     _peopleRepo = peopleRepo;
     _cityRepo   = cityRepo;
 }
        //ICountryRepo _countryRepo;

        public PeopleService(IPeopleRepo peopleRepo, ICityRepo cityRepo) /*ICountryRepo countryRepo)*/
        {
            _peopleRepo = peopleRepo;
            _cityRepo   = cityRepo;
            //_countryRepo = countryRepo;
        }
Esempio n. 14
0
 public PeopleService(IPeopleRepo peopleRepo)
 {
     pr = peopleRepo;
 }
Esempio n. 15
0
 public PersonService(IPeopleRepo personsRepo)
 {
     _personsRepo = personsRepo;
 }
Esempio n. 16
0
 public PeopleController(IPeopleRepo repository)
 {
     _repository = repository;
 }
Esempio n. 17
0
 public CityController(ICityService cityService, ICountryService countryService, IPeopleRepo peopleRepo)
 {
     _cityService    = cityService;
     _countryService = countryService;
     _peopleRepo     = peopleRepo;
 }
Esempio n. 18
0
 public CityService(IPeopleRepo peopleRepo, ICityRepo cityRepo, ICountryRepo countryRepo)
 {
     _cityRepo    = cityRepo;
     _peopleRepo  = peopleRepo;
     _countryRepo = countryRepo;
 }
Esempio n. 19
0
        IPeopleRepo _peopleRepo; //storage for Person data

        public PeopleService()
        {
            _peopleRepo = new PeopleRepo();
        }