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