Ejemplo n.º 1
0
        private SearchService Create(CultureInfo culture = null)
        {
            var provider = new TestCultureProvider(culture ?? new CultureInfo("en-US"));
            var service  = new SearchService(ConnectionFactory, provider, DatabaseSettings);

            return(service);
        }
Ejemplo n.º 2
0
        private RecipePersistenceService Create(CultureInfo culture = null)
        {
            culture = culture ?? CultureInfo.CurrentUICulture;
            var provider = new TestCultureProvider(culture);

            _search = new SearchService(ConnectionFactory, provider, DatabaseSettings);
            var service = new RecipePersistenceService(ConnectionFactory, provider, _search, DatabaseSettings);

            return(service);
        }