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; }
public TopicControllerTest(Fixed.Fixture fixture) { this.addTopicUseCase = fixture.Container.Resolve <IAddTopicUseCase>(); this.addCategoryUseCase = fixture.Container.Resolve <IAddCategoryUseCase>(); this.updateTopicUseCase = fixture.Container.Resolve <IUpdateTopicUseCase>(); this.removeTopicUseCase = fixture.Container.Resolve <IRemoveTopicUseCase>(); this.getAllTopicUseCase = fixture.Container.Resolve <IGetAllTopicUseCase>(); this.getByIdTopicUseCase = fixture.Container.Resolve <IGetByIdTopicUseCase>(); this.category = new Category("Teste1"); this.topic = new Topic("Topic1", category); this.guid = new Guid(); this.topicController = new TopicController(addTopicUseCase, getAllTopicUseCase, getByIdTopicUseCase, updateTopicUseCase, removeTopicUseCase, getByIdCategoryUseCase, getByIdUserUseCase ); }