예제 #1
0
        public void Initiat()
        {
            VolunteersDbCotext  volunteersDbCotext = new VolunteersDbCotext();
            VolunteerUnitOfWork unitOfWork         = new VolunteerUnitOfWork(volunteersDbCotext);

            _volunteerService = new VolunteerService(unitOfWork, new TestLogger());

            _commonSettingDataContext = new CommonSettings.DAL.CommonSettingDataContext();
        }
예제 #2
0
        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();
        }