Skip to content

Commit

Permalink
fixes compiler error in mock test. implemented updatefavoriteStatusBa…
Browse files Browse the repository at this point in the history
…sedOnFavorites function
  • Loading branch information
helloItsHEssam committed Nov 5, 2023
1 parent 1692986 commit 653f3a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Domain/Tests/DomainTests/UseCasesTests/MockRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
@testable import Domain

class MockPersonBankAccountRepository: PersonBankAccountRepository {

func createMockPersonAccount() -> PersonBankAccount {
let person = Person(name: "hessam", email: "h.mahdi", avatar: nil)
let card = Card(cardNumber: "123", cardType: "master")
Expand Down Expand Up @@ -38,6 +38,10 @@ class MockPersonBankAccountRepository: PersonBankAccountRepository {
func updatefavoriteStatusForPersonAccount(_ personBankAccount: Domain.PersonBankAccount) async -> Domain.PersonBankAccount {
return personBankAccount
}

func updatefavoriteStatusBasedOnFavorites(_ personBankAccount: Domain.PersonBankAccount) async -> Domain.PersonBankAccount {
return personBankAccount
}
}

class MockSuccessEmptyFetchAccountRepository: MockPersonBankAccountRepository {
Expand Down

0 comments on commit 653f3a4

Please sign in to comment.