[CVW-045] 유저 설정 레포지토리 리팩토링 #59
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
변경된 점
유저 설정 레포지토리 리팩토링
기존 구현의 경우 클린 아키텍처 관점에서 역할 분배가 재대로 되어 있지 않다고 판단하여 수정하였습니다.
ViewModel이 레포지토리에 직접 접근하지 않고SettingPageUseCase를 거치도록 수정했습니다.개념적 통용을 위해
UseCase를 생성하는 것이 올바르다고 판단했습니다.※ 설정 값이 올바르게 쓰기, 읽기 되는지 확인하기 위해 데이터 소스 테스트코드를 작성했습니다.