Beispiel #1
0
 public PostControllerTest(Fixed.Fixture fix)
 {
     this.postAddUseCase    = fix.Container.Resolve <IPostAddUseCase>();
     this.postUpdateUseCase = fix.Container.Resolve <IPostUpdateUseCase>();
     this.postRemoveUseCase = fix.Container.Resolve <IPostRemoveUseCase>();
     this.getByIdUseCase    = fix.Container.Resolve <IPostGetByIdUseCase>();
     this.postGetAllUseCase = fix.Container.Resolve <IPostGetAllUseCase>();
     this.postOne           = new Post("PostdeTestTitleOne", "PostdeTesteDescriptionOne");
     this.postTwo           = new Post("PostdeTestTitleTwo", "PostdeTesteDescriptionTwo");
     this.postController    = new PostController(postRemoveUseCase, postUpdateUseCase, postAddUseCase, getByIdUseCase, postGetAllUseCase);
 }
Beispiel #2
0
 public PostController(
     IPostRemoveUseCase postRemoveUseCase,
     IPostUpdateUseCase postUpdateUseCase,
     IPostAddUseCase postAddUseCase,
     IPostGetByIdUseCase getByIdUseCase,
     IPostGetAllUseCase postGetAllUseCase)
 {
     this.postRemoveUseCase = postRemoveUseCase;
     this.postUpdateUseCase = postUpdateUseCase;
     this.postAddUseCase    = postAddUseCase;
     this.getByIdUseCase    = getByIdUseCase;
     this.postGetAllUseCase = postGetAllUseCase;
 }