public ProductsController(IProductTasks productTasks, ICategoryTasks categoryTasks, IProductsQuery productsQuery, 
     ICommandProcessor commandProcessor, ICaptchaTasks captchaTasks)
 {
     _productTasks = productTasks;
     _categoryTasks = categoryTasks;
     _productsQuery = productsQuery;
     _commandProcessor = commandProcessor;
     _captchaTasks = captchaTasks;
 }
 public ProfileController(
     IIdentityService identityService,
     IProfileTasks userTasks,
     ICategoryTasks categoryTasks,
     IMapper <Profile, ViewProfilePageViewModel> viewProfilePageViewModelMapper,
     IMapper <Profile, IList <Category>, UpdateProfilePageViewModel> updateProfilePageViewModelMapper,
     ICreateProfilePageViewModelBuilder createProfilePageViewModelBuilder)
 {
     this.identityService = identityService;
     this.createProfilePageViewModelBuilder = createProfilePageViewModelBuilder;
     this.userTasks     = userTasks;
     this.categoryTasks = categoryTasks;
     this.viewProfilePageViewModelMapper   = viewProfilePageViewModelMapper;
     this.updateProfilePageViewModelMapper = updateProfilePageViewModelMapper;
 }
 public ProfileController(
     IIdentityService identityService,
     IProfileTasks userTasks,
     ICategoryTasks categoryTasks,
     IMapper<Profile, ViewProfilePageViewModel> viewProfilePageViewModelMapper,
     IMapper<Profile, IList<Category>, UpdateProfilePageViewModel> updateProfilePageViewModelMapper, 
     ICreateProfilePageViewModelBuilder createProfilePageViewModelBuilder)
 {
     this.identityService = identityService;
     this.createProfilePageViewModelBuilder = createProfilePageViewModelBuilder;
     this.userTasks = userTasks;
     this.categoryTasks = categoryTasks;
     this.viewProfilePageViewModelMapper = viewProfilePageViewModelMapper;
     this.updateProfilePageViewModelMapper = updateProfilePageViewModelMapper;
 }
예제 #4
0
 public ProfileController(
     IIdentityTasks identityTasks,
     IProfileTasks userTasks,
     ICategoryTasks categoryTasks,
     IMapper<Profile, ViewProfilePageViewModel> viewProfilePageViewModelMapper,
     IMapper<Profile, IList<Category>, UpdateProfilePageViewModel> updateProfilePageViewModelMapper,
     IMapper<AddAssertionFormModel, Identity, AddAssertionDetails> addAssertionDetailsMapper,
     IMapper<CreateProfileDetails, CreateProfilePageViewModel> createProfilePageViewModelMapper,
     IMapper<CreateProfileFormModel, Identity, CreateProfileDetails> createProfileDetailsMapper)
 {
     this.identityTasks = identityTasks;
     this.userTasks = userTasks;
     this.categoryTasks = categoryTasks;
     this.viewProfilePageViewModelMapper = viewProfilePageViewModelMapper;
     this.updateProfilePageViewModelMapper = updateProfilePageViewModelMapper;
     this.addAssertionDetailsMapper = addAssertionDetailsMapper;
     this.createProfilePageViewModelMapper = createProfilePageViewModelMapper;
     this.createProfileDetailsMapper = createProfileDetailsMapper;
 }
 public void Setup()
 {
     _tasks = MockRepository.GenerateMock<ICategoryTasks>();
     _controller = new CategoriesController(_tasks);
 }
 public void Setup()
 {
     _productTasks = MockRepository.GenerateMock<IProductTasks>();
     _categoryTasks = MockRepository.GenerateMock<ICategoryTasks>();
     _productsQuery = MockRepository.GenerateMock<IProductsQuery>();
     _commandProcessor = MockRepository.GenerateMock<ICommandProcessor>();
     _captchaTasks = MockRepository.GenerateMock<ICaptchaTasks>();
     _controller = new ProductsController(_productTasks, _categoryTasks, _productsQuery, _commandProcessor, _captchaTasks);
 }
 public void Setup()
 {
     _productTasks = MockRepository.GenerateMock<IProductTasks>();
     _categoryTasks = MockRepository.GenerateMock<ICategoryTasks>();
     _handler = new MassCategoryChangeHandler(_productTasks, _categoryTasks);
 }
예제 #8
0
 public CategoriesController(ICategoryTasks categoryTasks)
 {
     this.categoryTasks = categoryTasks;
 }
예제 #9
0
 public ProductBinder(ICategoryTasks categoryTasks)
 {
     _categoryTasks = categoryTasks;
 }
 public CategoriesController(ICategoryTasks tasks)
 {
     _tasks = tasks;
 }
예제 #11
0
 public CategoriesController(ICategoryTasks categoryTasks)
 {
     this.categoryTasks = categoryTasks;
 }