forked from sergdort/CleanArchitectureRxSwift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sergdort#68 from JustinDSN/feature/update-pods
Update Pods (RxSwift 5.0)
- Loading branch information
Showing
12 changed files
with
125 additions
and
140 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
CleanArchitectureRxSwiftTests/Scenes/AllPosts/AllPostsUseCaseMock.swift
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
CleanArchitectureRxSwiftTests/Scenes/AllPosts/PostsUseCaseMock.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@testable import CleanArchitectureRxSwift | ||
import RxSwift | ||
import Domain | ||
|
||
class PostsUseCaseMock: Domain.PostsUseCase { | ||
var posts_ReturnValue: Observable<[Post]> = Observable.just([]) | ||
var posts_Called = false | ||
var save_ReturnValue: Observable<Void> = Observable.just(()) | ||
var save_Called = false | ||
var delete_ReturnValue: Observable<Void> = Observable.just(()) | ||
var delete_Called = false | ||
|
||
func posts() -> Observable<[Post]> { | ||
posts_Called = true | ||
return posts_ReturnValue | ||
} | ||
|
||
func save(post: Post) -> Observable<Void> { | ||
save_Called = true | ||
return save_ReturnValue | ||
} | ||
|
||
func delete(post: Post) -> Observable<Void> { | ||
delete_Called = true | ||
return delete_ReturnValue | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters