public void Setup()
		{
			IOC.UnitTest();
			_repository = (UmbracoProductRepository) IOC.ProductRepository.Actual().Resolve();
			_product = new Product {ParentId = 0};
			_propertyProvider = new TestPropertyProvider();
			_localization = new StubLocalization {CurrencyCode = "EUR", StoreAlias = "EN", Currency = new StubCurrency {Ratio = (decimal) 1.1}};
		}
		public void Setup()
		{
			IOC.UnitTest();
			_repository = (UmbracoProductRepository) IOC.ProductRepository.Actual().Resolve();
			_product = new Product {ParentId = 0};
			_propertyProvider = new TestPropertyProvider();
			//_localization = new StubLocalization {StoreAlias = StoreAlias};
			var store = StoreHelper.GetCurrentStore();
			StoreAlias = store.Alias;
			_localization = Localization.CreateLocalization(store); // todo: not neccessary?
		}
Ejemplo n.º 3
0
 public void Setup()
 {
     IOC.UnitTest();
     _repository = (UmbracoProductRepository)IOC.ProductRepository.Actual().Resolve();
     _product    = new Product {
         ParentId = 0
     };
     _propertyProvider = new TestPropertyProvider();
     _localization     = new StubLocalization {
         CurrencyCode = "EUR", StoreAlias = "EN", Currency = new StubCurrency {
             Ratio = (decimal)1.1
         }
     };
 }
        public void Setup()
        {
            IOC.UnitTest();
            _repository = (UmbracoProductRepository)IOC.ProductRepository.Actual().Resolve();
            _product    = new Product {
                ParentId = 0
            };
            _propertyProvider = new TestPropertyProvider();
            //_localization = new StubLocalization {StoreAlias = StoreAlias};
            var store = StoreHelper.GetCurrentStore();

            StoreAlias    = store.Alias;
            _localization = Localization.CreateLocalization(store);             // todo: not neccessary?
        }