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