public MarketingModulePromotionControllerTests() { _mockPromotion = new Mock <IPromotionService>(); _mockCoupon = new Mock <ICouponService>(); _mockPromoEvaluator = new Mock <IMarketingPromoEvaluator>(); _mockPromotionSearch = new Mock <IPromotionSearchService>(); _mockUserNameResolver = new Mock <IUserNameResolver>(); _mockNotifier = new Mock <IPushNotificationManager>(); _mockBlobStorageProvider = new Mock <IBlobStorageProvider>(); _mockRepositoryFactory = new Mock <Func <IMarketingRepository> >(); _mockCouponSearch = new Mock <ICouponSearchService>(); _mockAuthorization = new Mock <IAuthorizationService>(); _controller = new MarketingModulePromotionController( promotionService: _mockPromotion.Object, couponService: _mockCoupon.Object, promoEvaluator: _mockPromoEvaluator.Object, promoSearchService: _mockPromotionSearch.Object, userNameResolver: _mockUserNameResolver.Object, notifier: _mockNotifier.Object, blobStorageProvider: _mockBlobStorageProvider.Object, repositoryFactory: _mockRepositoryFactory.Object, couponSearchService: _mockCouponSearch.Object, authorizationService: _mockAuthorization.Object, csvCouponImporter: null); }
private MarketingModulePromotionController GetMarketingController(IMarketingExtensionManager extensionManager) { var retVal = new MarketingModulePromotionController(GetMarketingService(), extensionManager, null); return(retVal); }
private MarketingModulePromotionController GetMarketingController(IMarketingExtensionManager extensionManager) { var retVal = new MarketingModulePromotionController(GetMarketingService(), GetCouponService(), extensionManager, null, GetExpressionSerializer(), null, null, null, null, null, null, null); return(retVal); }