Exemplo n.º 1
0
 public UtilityRepo(
     ICountryData country,
     IUsStateData usState,
     IUsCityData usCity,
     IUsZipCodeData usZipCode,
     IMap map)
 {
     _country   = country;
     _usState   = usState;
     _usCity    = usCity;
     _usZipCode = usZipCode;
     _map       = map;
 }
 public CachingReader(ICountryData wrapperReader)
 {
     _wrapperReader = wrapperReader;
 }
Exemplo n.º 3
0
        public CountryDataController()
        {
            var serviceReader = new ServiceReader();

            _countryRepository = new CachingReader(serviceReader);
        }
Exemplo n.º 4
0
 public CountryController(ApplicationDbContext context,
                          ICountryData countryData)
 {
     _context     = context;
     _countryData = countryData;
 }