Exemple #1
0
 public CategoryController(
     ICategoryAddUseCase categoryAddUseCase,
     ICategoryGetByIdUseCase categoryGetByIdUseCase,
     ICategoryGetAllUseCase categoryGetAllUseCase)
 {
     this.categoryAddUseCase     = categoryAddUseCase;
     this.categoryGetByIdUseCase = categoryGetByIdUseCase;
     this.categoryGetAllUseCase  = categoryGetAllUseCase;
 }
 public UserControllerTest(Fixed.Fixture fix)
 {
     this.categoryAddUseCase     = fix.Container.Resolve <ICategoryAddUseCase>();
     this.categoryGetByIdUseCase = fix.Container.Resolve <ICategoryGetByIdUseCase>();
     this.categoryGetAllUseCase  = fix.Container.Resolve <ICategoryGetAllUseCase>();
     this.category           = new Category("categorydeTest");
     this.guid               = new Guid();
     this.categoryController = new CategoryController(categoryAddUseCase, categoryGetByIdUseCase, categoryGetAllUseCase);
 }