/// <summary> /// Location rule /// </summary> /// <param name="address"></param> /// <param name="isOnline"></param> public LocationRule(Address address) { IStateDao stateDao = Ioc.GetObject <IStateDao>("stateDao"); ICountryDao countryDao = Ioc.GetObject <ICountryDao>("countryDao"); Init(stateDao.GetLookUp(), countryDao.GetLookUp(), address, address.IsOnline); }
private void Init(ILocationShortNameDao shortNameDao, IStateDao stateDao, ICityDao cityDao, ICountryDao countryDao) { _shortNameDao = shortNameDao; //_zipCodeDao = zipCodeDao; _stateDao = stateDao; _cityDao = cityDao; _countryDao = countryDao; }
public LocationController(ICommandBus bus, ICountryDao _countryDao, INeighbourhoodDao _neighbourhoodDao, IStateDao _stateDao, ICityDao _cityDao) : base() { this.bus = bus; this._CountryDao = _countryDao; this._NeighbourhoodDao = _neighbourhoodDao; this._StateDao = _stateDao; this._CityDao = _cityDao; }
public SQLeBasedCovidDashboard() { IDaoFactory factory = new DaoFactorySQLe(); stateDao = factory.StateDao; districtDao = factory.DistrictDao; userDao = factory.UserDao; reportDao = factory.ReportDao; }
public SystemDomainValuesController(ICommandBus bus, ICurrencyDao _CurrencyDao, ILanguageDao _LanguageDao, ICountryDao _countryDao, INeighbourhoodDao _neighbourhoodDao, IStateDao _stateDao, ICityDao _cityDao, IPersonDao _PersonDao, IPersonOriginTypeDao _personOriginTypeDao, IPersonProfileDao _personProfileDao, IPersonStatusDao _personStatusDao, IPersonTypeDao _personTypeDao, IPersonAddressDao _personAddressDao, IPersonExpertiseDao _personExpertiseDao, IFileTempDao fileTemp, ISecuritySourceDao _SecurityDao) : base() { this.bus = bus; this._CurrencyDao = _CurrencyDao; this._LanguageDao = _LanguageDao; this._CountryDao = _countryDao; this._NeighbourhoodDao = _neighbourhoodDao; this._StateDao = _stateDao; this._CityDao = _cityDao; this._PersonDao = _PersonDao; this._PersonOriginTypeDao = _personOriginTypeDao; this._PersonProfileDao = _personProfileDao; this._PersonStatusDao = _personStatusDao; this._PersonTypeDao = _personTypeDao; this._PersonAddressDao = _personAddressDao; this._listFileTemp = new List <int>(); this._FileTemp = fileTemp; this._PersonExpertiseDao = _personExpertiseDao; this._SecurityDao = _SecurityDao; }
/// <summary> /// Constuctor that also takes in the short name dao. /// </summary> /// <param name="shortNameDao"></param> /// <param name="zipCodeDao"></param> /// <param name="stateDao"></param> public LocationService(ICountryDao countryDao, IStateDao stateDao, ICityDao cityDao, ILocationShortNameDao shortNameDao) { Init(shortNameDao, stateDao, cityDao, countryDao); }