Пример #1
0
 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;
 }
Пример #2
0
        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;
 }
Пример #4
0
 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"
            };
        }
Пример #6
0
        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());
        }
Пример #7
0
        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>();
        }
Пример #8
0
 public StaticPageController(IStaticPageRepository staticPageRepo)
 {
     _staticPageRepo = staticPageRepo;
 }
Пример #9
0
 public StaticPageController(IStaticPageRepository repository)
 {
     _staticPageRepository = repository;
 }
Пример #10
0
 public StaticPageServices(IStaticPageRepository newStaticPageRepo)
 {
     _staticPagerepo = newStaticPageRepo;
 }
Пример #11
0
 public StaticPageService(IStaticPageRepository staticPageRepository)
 {
     _staticPageRepository = staticPageRepository;
 }