示例#1
0
        private static FileController GetFileController()
        {
            fileAdminService = A.Fake <IFileAdminService>();
            var fileController = new FileController(fileAdminService);

            return(fileController);
        }
 public MediaCategoryControllerTests()
 {
     _documentService = A.Fake<IDocumentService>();
     _fileService = A.Fake<IFileAdminService>();
     _urlValidationService = A.Fake<IUrlValidationService>();
     _mediaCategoryController = new MediaCategoryController(_fileService, _urlValidationService, _documentService);
 }
 public MediaCategoryControllerTests()
 {
     _documentService         = A.Fake <IDocumentService>();
     _fileService             = A.Fake <IFileAdminService>();
     _urlValidationService    = A.Fake <IUrlValidationService>();
     _mediaCategoryController = new MediaCategoryController(_fileService, _urlValidationService, _documentService);
 }
 public ProductController(IProductService productService,
                          ICategoryService categoryService,
                          IProductOptionManager productOptionManager,
                          IFileAdminService fileAdminService,
                          IProductOptionManagementService productOptionManagementService,
                          SiteSettings siteSettings,
                          IUniquePageService uniquePageService)
 {
     _productService                 = productService;
     _categoryService                = categoryService;
     _productOptionManager           = productOptionManager;
     _fileAdminService               = fileAdminService;
     _productOptionManagementService = productOptionManagementService;
     _siteSettings      = siteSettings;
     _uniquePageService = uniquePageService;
 }
 public ProductControllerTests()
 {
     _documentService = A.Fake<IDocumentService>();
     _productService = A.Fake<IProductService>();
     _categoryService = A.Fake<ICategoryService>();
     _productOptionManager = A.Fake<IProductOptionManager>();
     _fileService = A.Fake<IFileAdminService>();
     _productOptionManagementService = A.Fake<IProductOptionManagementService>();
     _siteSettings = new SiteSettings {DefaultPageSize = 10};
     _uniquePageService = A.Fake<IUniquePageService>();
     _productSearch = new ProductSearch();
     _eTagAdminService = A.Fake<IETagAdminService>();
     A.CallTo(() => _uniquePageService.GetUniquePage<ProductSearch>()).Returns(_productSearch);
     _productController = new ProductController(_productService, _documentService, _categoryService,
         _productOptionManager,
         _fileService, _productOptionManagementService, _siteSettings, _uniquePageService, _eTagAdminService);
 }
示例#6
0
        public ProductControllerTests()
        {
            _productService                 = A.Fake <IProductService>();
            _categoryService                = A.Fake <ICategoryService>();
            _productOptionManager           = A.Fake <IProductOptionManager>();
            _fileService                    = A.Fake <IFileAdminService>();
            _productOptionManagementService = A.Fake <IProductOptionManagementService>();
            _siteSettings                   = new SiteSettings {
                DefaultPageSize = 10
            };
            _uniquePageService = A.Fake <IUniquePageService>();
            _productSearch     = new ProductSearch();

            A.CallTo(() => _uniquePageService.GetUniquePage <ProductSearch>()).Returns(_productSearch);

            _productController = new ProductController(_productService, _categoryService, _productOptionManager,
                                                       _fileService, _productOptionManagementService, _siteSettings, _uniquePageService);
        }
示例#7
0
 public MediaCategoryControllerTests()
 {
     _fileAdminService          = A.Fake <IFileAdminService>();
     _mediaCategoryAdminService = A.Fake <IMediaCategoryAdminService>();
     _mediaCategoryController   = new MediaCategoryController(_mediaCategoryAdminService, _fileAdminService);
 }
示例#8
0
 private static FileController GetFileController()
 {
     fileAdminService = A.Fake<IFileAdminService>();
     var fileController = new FileController(fileAdminService);
     return fileController;
 }
示例#9
0
 public FileController(IFileAdminService fileService)
 {
     _fileService = fileService;
 }
示例#10
0
 public MediaCategoryController(IFileAdminService fileAdminService, IUrlValidationService urlValidationService, IDocumentService documentService)
 {
     _fileAdminService = fileAdminService;
     _urlValidationService = urlValidationService;
     _documentService = documentService;
 }
示例#11
0
 public MediaCategoryController(IFileAdminService fileAdminService, IUrlValidationService urlValidationService, IDocumentService documentService)
 {
     _fileAdminService     = fileAdminService;
     _urlValidationService = urlValidationService;
     _documentService      = documentService;
 }
示例#12
0
 public MediaCategoryController(IMediaCategoryAdminService mediaCategoryAdminService, IFileAdminService fileAdminService)
 {
     _mediaCategoryAdminService = mediaCategoryAdminService;
     _fileAdminService          = fileAdminService;
 }