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); }
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); }
public MediaCategoryControllerTests() { _fileAdminService = A.Fake <IFileAdminService>(); _mediaCategoryAdminService = A.Fake <IMediaCategoryAdminService>(); _mediaCategoryController = new MediaCategoryController(_mediaCategoryAdminService, _fileAdminService); }
private static FileController GetFileController() { fileAdminService = A.Fake<IFileAdminService>(); var fileController = new FileController(fileAdminService); return fileController; }
public FileController(IFileAdminService fileService) { _fileService = fileService; }
public MediaCategoryController(IFileAdminService fileAdminService, IUrlValidationService urlValidationService, IDocumentService documentService) { _fileAdminService = fileAdminService; _urlValidationService = urlValidationService; _documentService = documentService; }
public MediaCategoryController(IMediaCategoryAdminService mediaCategoryAdminService, IFileAdminService fileAdminService) { _mediaCategoryAdminService = mediaCategoryAdminService; _fileAdminService = fileAdminService; }