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

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