public LanguageService(ILanguageRepo languageRepo, IPeopleRepo peopleRepo, IPersonLanguageService personLangService, IPersonLangRepo personLangRepo, IPeopleServices peopleService)
 {
     _languageRepo      = languageRepo;
     _peopleRepo        = peopleRepo;
     _personLangService = personLangService;
     _personLangRepo    = personLangRepo;
     _peopleService     = peopleService;
 }
示例#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>();
        }
示例#3
0
 public PeopleServicesTest()
 {
     peopleService = new PeopleServices(context);
     InsertDummyData();
 }
示例#4
0
 public LanguageController(IPeopleServices peopleService, IPersonLanguageService personLangService, ILanguageService languageService)
 {
     _peopleService     = peopleService;
     _languageService   = languageService;
     _personLangService = personLangService;
 }
示例#5
0
 public PeopleController(IPeopleServices services)
 {
     _services = services;
 }
示例#6
0
 public PeopleController(IPeopleServices peopleServices)
 {
     _peopleServices = peopleServices;
 }
        /*public CityController(ICityService cityService)
         * {
         *  _cityService = cityService;
         * }*/

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