public HomeController(IUnitOfWork unitOfWork, IMailServerService mailServerService, IUserRepository repository, IStaticPageRepository staticPageRepository, INewsItemRepository newsItemRepository, ICustomerLogoRepository customerLogoRepository , IOrderRepository orderRepository, IMyOfficeRepository myOfficeRepository, IProductRepository productRepository, ICustomerRepository customerRepository, IShippingServiceRepository shippingServiceRepository, IStorageRepository storageRepository, IOrderDetailRepository orderDetailRepository, IProductInStorageRepository productInStorageRepository, IRateMappingRepository rateMappingRepository, IExtraFeeRepository extraFeeRepository, ICategoryRepository categoryRepository) : base(repository, unitOfWork) { _mailServerService = mailServerService; _staticPageRepository = staticPageRepository; _newsItemRepository = newsItemRepository; _customerLogoRepository = customerLogoRepository; _orderRepository = orderRepository; _myOfficeRepository = myOfficeRepository; _productRepository = productRepository; _customerRepository = customerRepository; _shippingServiceRepository = shippingServiceRepository; _storageRepository = storageRepository; _orderDetailRepository = orderDetailRepository; _productInStorageRepository = productInStorageRepository; _rateMappingRepository = rateMappingRepository; _extraFeeRepository = extraFeeRepository; _categoryRepository = categoryRepository; }
public StaticPageManager() { var kernel = new StandardKernel(new DataBindings()); kernel.Load(Assembly.GetExecutingAssembly()); _staticPageRepository = kernel.Get <IStaticPageRepository>(); _exceptionsRepository = kernel.Get <IExceptionsRepository>(); }
public StaticContentService( IStaticPageRepository repository, IStaticPageBuilder builder, IStaticPageMenuItemBuilder menuItemBuilder) { _repository = repository; _builder = builder; _menuItemBuilder = menuItemBuilder; }
public PartialViewController(IBlogPostRepository blogPostRepo, IUserRepository userRepo, IStaticPageRepository staticPageRepo, IBlogCategoryRepository blogCategoryRepo, IBlogTagRepository blogTagRepo, ICategoryRepository categoryRepo, ITagRepository tagRepo) { _blogPostRepo = blogPostRepo; _blogCategoryRepo = blogCategoryRepo; _blogTagRepo = blogTagRepo; _categoryRepo = categoryRepo; _tagRepo = tagRepo; _userRepo = userRepo; _staticPageRepo = staticPageRepo; }
public StaticPageRepositoryTests() { var kernel = new StandardKernel(new DataBindings()); kernel.Load(Assembly.GetExecutingAssembly()); _staticPageRepository = kernel.Get <IStaticPageRepository>(); _testStaticPage = new StaticPage { IsLive = true, Title = "TESTPAGE22", Content = "THIS IS A TEST PAGE", ImagePath = "PATH" }; }
public void Setup() { _staticPageRepository = MockRepository.GenerateStub<IStaticPageRepository>(); _urlHelper = MockRepository.GenerateStub<IUrlHelper>(); _staticContentLinkService = MockRepository.GenerateStub<IStaticContentLinkService>(); _staticPageService = new StaticPageService(_staticPageRepository); _objectUnderTest = new StaticPageController(_staticPageService, _staticContentLinkService, _urlHelper); _objectUnderTest.Request = new HttpRequestMessage(); _objectUnderTest.Request.SetConfiguration(new HttpConfiguration()); }
public BlogManager() { var kernel = new StandardKernel(new DataBindings()); kernel.Load(Assembly.GetExecutingAssembly()); _blogRepository = kernel.Get <IBlogRepository>(); _postRepository = kernel.Get <IPostRepository>(); _categoryRepository = kernel.Get <ICategoryRepository>(); _categoriesOnPostsRepository = kernel.Get <ICategoriesOnPostsRepository>(); _tagRepository = kernel.Get <ITagRepository>(); _tagsOnPostsRepository = kernel.Get <ITagsOnPostsRepository>(); _exceptionsRepository = kernel.Get <IExceptionsRepository>(); _staticPageRepository = kernel.Get <IStaticPageRepository>(); }
public StaticPageController(IStaticPageRepository staticPageRepo) { _staticPageRepo = staticPageRepo; }
public StaticPageController(IStaticPageRepository repository) { _staticPageRepository = repository; }
public StaticPageServices(IStaticPageRepository newStaticPageRepo) { _staticPagerepo = newStaticPageRepo; }
public StaticPageService(IStaticPageRepository staticPageRepository) { _staticPageRepository = staticPageRepository; }