Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: #register 매크로 구현 #22

Open
1 task
rlarjsdn3 opened this issue Jun 7, 2024 · 0 comments
Open
1 task

feat: #register 매크로 구현 #22

rlarjsdn3 opened this issue Jun 7, 2024 · 0 comments
Labels
기능 New feature or request 문서 Improvements or additions to documentation 😆경미

Comments

@rlarjsdn3
Copy link
Collaborator

rlarjsdn3 commented Jun 7, 2024

🛠️ 작업 내용

  • #register 매크로 구현

테스트 케이스 ①

#register(HomeUseCaseProtocol.self) { _ in
    HomeUseCase()
}

// Begin expansion of "#RegisterContainer"
Container.standard.register(type: HomeUseCaseProtocol.self) { _ in
    HomeUseCase(repository: makeHomeRepository()
}
// End expansion of "#RegisterContainer"

테스트 케이스 ②

#register(HomeUseCaseProtocol.self, key: "Home") { _ in
    HomeUseCase()
}

// Begin expansion of "#RegisterContainer"
Container.standard.register(type: HomeUseCaseProtocol.self, key: "Home") { _ in
    HomeUseCase(repository: makeHomeRepository()
}
// End expansion of "#RegisterContainer"

📄 기타

  • 주석화된 문서 작성하기
  • XCTest 케이스 작성하기

검토 완료

@rlarjsdn3 rlarjsdn3 added 문서 Improvements or additions to documentation 기능 New feature or request 😆경미 labels Jun 7, 2024
@rlarjsdn3 rlarjsdn3 changed the title feat: #RegisterContainer 매크로 구현 feat: #register 매크로 구현 Jun 11, 2024
@rlarjsdn3 rlarjsdn3 added 문서 Improvements or additions to documentation 기능 New feature or request 😆경미 and removed 문서 Improvements or additions to documentation 기능 New feature or request 😆경미 labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
기능 New feature or request 문서 Improvements or additions to documentation 😆경미
Projects
None yet
Development

No branches or pull requests

1 participant