Esempio n. 1
0
        public static StubCMSApplicationNotInBackend StubNotInBackend(this IOCBuilder <ICMSApplication> iocBuilder)
        {
            var stub = new StubCMSApplicationNotInBackend();

            iocBuilder.Use(stub);
            return(stub);
        }
Esempio n. 2
0
        public static Mock <ICMSEntityRepository> SetupFake(this IOCBuilder <ICMSEntityRepository> iocBuilder, params uWebshop.Domain.Helpers.UwbsNode[] uwbsNodes)
        {
            Mock <ICMSEntityRepository> mock = MockConstructors.CreateMockCMSEntityRepository(uwbsNodes);

            iocBuilder.Use(mock.Object);
            return(mock);
        }
Esempio n. 3
0
 public static void OverParts(this IOCBuilder <IVatCalculationStrategy> iocBuilder)
 {
     iocBuilder.UseType <OverSmallestPartsVatCalculationStrategy>();
 }
Esempio n. 4
0
 public static IOCBuilder <IUrlLocalizationService> Actual(this IOCBuilder <IUrlLocalizationService> iocBuilder)
 {
     iocBuilder.UseType <StoreUrlInFrontBasedOnCurrentNodeUrlLocalizationService>();
     return(iocBuilder);
 }
Esempio n. 5
0
 public static void ExclVat(this IOCBuilder <ISettingsService> iocBuilder)
 {
     iocBuilder.Use(StubSettingsService.ExclVat());
 }
Esempio n. 6
0
 public static void OverTotal(this IOCBuilder <IVatCalculationStrategy> iocBuilder)
 {
     iocBuilder.UseType <OverTotalVatCalculationStrategy>();
 }
Esempio n. 7
0
 public static IOCBuilder <ICategoryService> Actual(this IOCBuilder <ICategoryService> iocBuilder)
 {
     iocBuilder.UseType <CategoryService>();
     return(iocBuilder);
 }
Esempio n. 8
0
 // not sure about this
 public static TestCMSEntityRepository GetFake(this IOCBuilder <ICMSEntityRepository> iocBuilder)
 {
     return((TestCMSEntityRepository)iocBuilder.Resolve());
 }
Esempio n. 9
0
 public static IOCBuilder <IStoreFromUrlDeterminationService> Actual(this IOCBuilder <IStoreFromUrlDeterminationService> iocBuilder)
 {
     iocBuilder.UseType <StoreFromUrlDeterminationService>(); return(iocBuilder);
 }
Esempio n. 10
0
 public static IOCBuilder <IApplicationCacheManagingService> Actual(this IOCBuilder <IApplicationCacheManagingService> iocBuilder)
 {
     iocBuilder.UseType <UmbracoApplicationCacheManagingService>();
     return(iocBuilder);
 }
Esempio n. 11
0
 public static IOCBuilder <IUrlFormatService> Actual(this IOCBuilder <IUrlFormatService> iocBuilder)
 {
     iocBuilder.UseType <UrlFormatService>();
     return(iocBuilder);
 }
Esempio n. 12
0
 public static void SetupFake(this IOCBuilder <IOrderDiscountRepository> iocBuilder, params IOrderDiscount[] orderDiscounts)
 {
     iocBuilder.Use(new FakeOrderDiscountRepository {
         Entities = orderDiscounts.ToList()
     });
 }
Esempio n. 13
0
 public static IOCBuilder <IProductUrlService> Actual(this IOCBuilder <IProductUrlService> iocBuilder)
 {
     iocBuilder.UseType <CatalogCategoryPlusProductUrlService>();
     return(iocBuilder);
 }
Esempio n. 14
0
 public static IOCBuilder <IProductDiscountService> Actual(this IOCBuilder <IProductDiscountService> iocBuilder)
 {
     iocBuilder.UseType <ProductDiscountService>();
     return(iocBuilder);
 }
Esempio n. 15
0
 public static IOCBuilder <ICatalogUrlResolvingService> Actual(this IOCBuilder <ICatalogUrlResolvingService> iocBuilder)
 {
     iocBuilder.UseType <CatalogUrlResolvingService>();
     return(iocBuilder);
 }
Esempio n. 16
0
 public static IOCBuilder <IPaymentProviderService> Actual(this IOCBuilder <IPaymentProviderService> iocBuilder)
 {
     iocBuilder.UseType <PaymentProviderService>();
     return(iocBuilder);
 }
Esempio n. 17
0
 public static IOCBuilder <IStoreUrlRepository> Actual(this IOCBuilder <IStoreUrlRepository> iocBuilder)
 {
     iocBuilder.UseType <UmbracoStorePickerStoreUrlRepository>();
     return(iocBuilder);
 }
Esempio n. 18
0
 public static IOCBuilder <IOrderNumberService> Actual(this IOCBuilder <IOrderNumberService> iocBuilder)
 {
     iocBuilder.UseType <OrderNumberService>();
     return(iocBuilder);
 }
Esempio n. 19
0
 public static IOCBuilder <IDiscountCalculationService> Actual(this IOCBuilder <IDiscountCalculationService> iocBuilder)
 {
     iocBuilder.UseType <DiscountCalculationService>();
     return(iocBuilder);
 }