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

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