public LanguageService(ILanguageRepo languageRepo, IPeopleRepo peopleRepo, IPersonLanguageService personLangService, IPersonLangRepo personLangRepo, IPeopleServices peopleService)
 {
     _languageRepo      = languageRepo;
     _peopleRepo        = peopleRepo;
     _personLangService = personLangService;
     _personLangRepo    = personLangRepo;
     _peopleService     = peopleService;
 }
Exemple #2
0
        public PeopleTests()
        {
            var services = new ServiceCollection();

            services.AddSingleton <IGetPeople, GetPeople>();
            services.AddSingleton <IPeopleServices, PeopleService>();
            services.AddSingleton <IGetPeopleServices, GetPeopleServices>();
            var provider = services.BuildServiceProvider();

            _peopleService = provider.GetService <IPeopleServices>();
        }
Exemple #3
0
 public PeopleServicesTest()
 {
     peopleService = new PeopleServices(context);
     InsertDummyData();
 }
Exemple #4
0
 public LanguageController(IPeopleServices peopleService, IPersonLanguageService personLangService, ILanguageService languageService)
 {
     _peopleService     = peopleService;
     _languageService   = languageService;
     _personLangService = personLangService;
 }
Exemple #5
0
 public PeopleController(IPeopleServices services)
 {
     _services = services;
 }
Exemple #6
0
 public PeopleController(IPeopleServices peopleServices)
 {
     _peopleServices = peopleServices;
 }
        /*public CityController(ICityService cityService)
         * {
         *  _cityService = cityService;
         * }*/

        public CityController(ICityService cityService, IPeopleServices peopleService)
        {
            _cityService   = cityService;
            _peopleService = peopleService;
        }