public void Initiat() { VolunteersDbCotext volunteersDbCotext = new VolunteersDbCotext(); VolunteerUnitOfWork unitOfWork = new VolunteerUnitOfWork(volunteersDbCotext); _volunteerService = new VolunteerService(unitOfWork, new TestLogger()); _commonSettingDataContext = new CommonSettings.DAL.CommonSettingDataContext(); }
public void Initiate() { var dataContext = new CommonSettings.DAL.CommonSettingDataContext(); var unitOfWork = new CommonSettings.DAL.CommonSettingsUnitOfWork(dataContext); var log = NLog.LogManager.CreateNullLogger(); _placesServices = new CommonSettings.BLL.PlacesService(unitOfWork, log); AddCountry(); AddRegion(); AddCity(); //AddDistrict(); }