public static StubCMSApplicationNotInBackend StubNotInBackend(this IOCBuilder <ICMSApplication> iocBuilder) { var stub = new StubCMSApplicationNotInBackend(); iocBuilder.Use(stub); return(stub); }
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); }
public static void OverParts(this IOCBuilder <IVatCalculationStrategy> iocBuilder) { iocBuilder.UseType <OverSmallestPartsVatCalculationStrategy>(); }
public static IOCBuilder <IUrlLocalizationService> Actual(this IOCBuilder <IUrlLocalizationService> iocBuilder) { iocBuilder.UseType <StoreUrlInFrontBasedOnCurrentNodeUrlLocalizationService>(); return(iocBuilder); }
public static void ExclVat(this IOCBuilder <ISettingsService> iocBuilder) { iocBuilder.Use(StubSettingsService.ExclVat()); }
public static void OverTotal(this IOCBuilder <IVatCalculationStrategy> iocBuilder) { iocBuilder.UseType <OverTotalVatCalculationStrategy>(); }
public static IOCBuilder <ICategoryService> Actual(this IOCBuilder <ICategoryService> iocBuilder) { iocBuilder.UseType <CategoryService>(); return(iocBuilder); }
// not sure about this public static TestCMSEntityRepository GetFake(this IOCBuilder <ICMSEntityRepository> iocBuilder) { return((TestCMSEntityRepository)iocBuilder.Resolve()); }
public static IOCBuilder <IStoreFromUrlDeterminationService> Actual(this IOCBuilder <IStoreFromUrlDeterminationService> iocBuilder) { iocBuilder.UseType <StoreFromUrlDeterminationService>(); return(iocBuilder); }
public static IOCBuilder <IApplicationCacheManagingService> Actual(this IOCBuilder <IApplicationCacheManagingService> iocBuilder) { iocBuilder.UseType <UmbracoApplicationCacheManagingService>(); return(iocBuilder); }
public static IOCBuilder <IUrlFormatService> Actual(this IOCBuilder <IUrlFormatService> iocBuilder) { iocBuilder.UseType <UrlFormatService>(); return(iocBuilder); }
public static void SetupFake(this IOCBuilder <IOrderDiscountRepository> iocBuilder, params IOrderDiscount[] orderDiscounts) { iocBuilder.Use(new FakeOrderDiscountRepository { Entities = orderDiscounts.ToList() }); }
public static IOCBuilder <IProductUrlService> Actual(this IOCBuilder <IProductUrlService> iocBuilder) { iocBuilder.UseType <CatalogCategoryPlusProductUrlService>(); return(iocBuilder); }
public static IOCBuilder <IProductDiscountService> Actual(this IOCBuilder <IProductDiscountService> iocBuilder) { iocBuilder.UseType <ProductDiscountService>(); return(iocBuilder); }
public static IOCBuilder <ICatalogUrlResolvingService> Actual(this IOCBuilder <ICatalogUrlResolvingService> iocBuilder) { iocBuilder.UseType <CatalogUrlResolvingService>(); return(iocBuilder); }
public static IOCBuilder <IPaymentProviderService> Actual(this IOCBuilder <IPaymentProviderService> iocBuilder) { iocBuilder.UseType <PaymentProviderService>(); return(iocBuilder); }
public static IOCBuilder <IStoreUrlRepository> Actual(this IOCBuilder <IStoreUrlRepository> iocBuilder) { iocBuilder.UseType <UmbracoStorePickerStoreUrlRepository>(); return(iocBuilder); }
public static IOCBuilder <IOrderNumberService> Actual(this IOCBuilder <IOrderNumberService> iocBuilder) { iocBuilder.UseType <OrderNumberService>(); return(iocBuilder); }
public static IOCBuilder <IDiscountCalculationService> Actual(this IOCBuilder <IDiscountCalculationService> iocBuilder) { iocBuilder.UseType <DiscountCalculationService>(); return(iocBuilder); }