public static void Init(RegionPersistentRepository regionPersistentRepository, CurrencyPersistentRepository currencyPersistentRepository, CountryPersistentRepository countryPersistentRepository) { regions = regionPersistentRepository; currencies = currencyPersistentRepository; countries = countryPersistentRepository; }
public static void Init() { #if DEBUG var stopwatch = Stopwatch.StartNew(); #endif regions = new RegionPersistentRepository(); currencies = new CurrencyPersistentRepository(); countries = new CountryPersistentRepository(); #if DEBUG stopwatch.Stop(); System.Diagnostics.Debug.WriteLine(string.Format("Persistent load time : {0} ms", stopwatch.ElapsedMilliseconds)); #endif }