コード例 #1
0
 public CategoryController(
     IAddCategoryUseCase addCategoryUseCase,
     IRemoveCategoryUseCase removeCategoryUseCase,
     IUpdateCategoryUseCase updateCategoryUseCase,
     IGetAllCategoryUseCase getAllCategoryUseCase,
     IGetByIdCategoryUseCase getByIdCategoryUseCase)
 {
     this.addCategoryUseCase     = addCategoryUseCase;
     this.removeCategoryUseCase  = removeCategoryUseCase;
     this.updateCategoryUseCase  = updateCategoryUseCase;
     this.getAllCategoryUseCase  = getAllCategoryUseCase;
     this.getByIdCategoryUseCase = getByIdCategoryUseCase;
 }
コード例 #2
0
 public CategoryControllerTest(Fixed.Fixture fixture)
 {
     this.addCategoryUseCase    = fixture.Container.Resolve <IAddCategoryUseCase>();
     this.removeCategoryUseCase = fixture.Container.Resolve <IRemoveCategoryUseCase>();
     this.updateCategoryUseCase = fixture.Container.Resolve <IUpdateCategoryUseCase>();
     this.getAllCategoryUseCase = fixture.Container.Resolve <IGetAllCategoryUseCase>();
     this.byIdCategoryUseCase   = fixture.Container.Resolve <IGetByIdCategoryUseCase>();
     this.category           = new Category("Ciencia");
     this.guid               = new Guid();
     this.categoryController = new CategoryController(addCategoryUseCase,
                                                      removeCategoryUseCase,
                                                      updateCategoryUseCase,
                                                      getAllCategoryUseCase,
                                                      byIdCategoryUseCase);
 }
コード例 #3
0
ファイル: TopicController.cs プロジェクト: IovanB/webforum
 public TopicController(
     IAddTopicUseCase addTopicUseCase,
     IGetAllTopicUseCase getAllTopicUseCase,
     IGetByIdTopicUseCase getByIdTopicUseCase,
     IUpdateTopicUseCase updateTopicUseCase,
     IRemoveTopicUseCase removeTopicUseCase,
     IGetByIdCategoryUseCase getByIdCategoryUseCase,
     IGetByIdUserUseCase getByIdUserUseCase
     )
 {
     this.addTopicUseCase        = addTopicUseCase;
     this.getAllTopicUseCase     = getAllTopicUseCase;
     this.getByIdTopicUseCase    = getByIdTopicUseCase;
     this.updateTopicUseCase     = updateTopicUseCase;
     this.removeTopicUseCase     = removeTopicUseCase;
     this.getByIdCategoryUseCase = getByIdCategoryUseCase;
     this.getByIdUserUseCase     = getByIdUserUseCase;
 }