Ejemplo n.º 1
0
 public CategoryControllerTests()
 {
     _categoryAdminService = A.Fake<ICategoryAdminService>();
     //use the default of the container existing
     A.CallTo(() => _categoryAdminService.ProductContainerExists()).Returns(true);
     _categoryController = new CategoryController(_categoryAdminService);
 }
Ejemplo n.º 2
0
 public CategoryControllerTests()
 {
     _categoryAdminService = A.Fake <ICategoryAdminService>();
     //use the default of the container existing
     A.CallTo(() => _categoryAdminService.ProductContainerExists()).Returns(true);
     _categoryController = new CategoryController(_categoryAdminService);
 }
Ejemplo n.º 3
0
 public ProductAdminService(FurryPalDbContext dbContext, ICategoryAdminService categoryAdminService,
                            IManufacturerAdminService manufacturerAdminService, Cloudinary cloudinary)
 {
     this.dbContext                = dbContext;
     this.categoryAdminService     = categoryAdminService;
     this.manufacturerAdminService = manufacturerAdminService;
     this.cloudinary               = cloudinary;
 }
Ejemplo n.º 4
0
 public ItemIsInCategoryController(ICategoryAdminService categoryAdminService)
 {
     _categoryAdminService = categoryAdminService;
 }
Ejemplo n.º 5
0
 public CategoriesController(UserManager <User> userManager, SignInManager <User> signInManager,
                             IMapper mapper, ICategoryAdminService categoryAdminService) : base(
         userManager, signInManager, mapper)
 {
     this.categoryAdminService = categoryAdminService;
 }