I create a Cuckoo Mock for this protocol . I precise that ViewModel is a Class.
protocol TravelersViewModelProtocol where Self: ViewModel {
var membersDetailsCellViewModel: ParticipantsCellViewModel { get }
var organizerCellViewModel: OrganizerCellViewModel { get }
var invitationCellViewModels: [InvitationCellViewModel]? { get }
var footerText: NSAttributedString { get }
var logger: LoggerProtocol { get }
var tracker: TrackerProtocol { get }
func fetchInvitations()
func sendCoTravelersScreenEvent()
}
However, I face this issue
type 'MockTravelersViewModelProtocol' does not conform to protocol 'TravelersViewModelProtocol'
TravelersViewModelProtocol' requires that 'MockTravelersViewModelProtocol' inherit from 'ViewModel'
I completely understand the issue but I don't know how to solve it.
Hello,
I create a
Cuckoo Mock
for thisprotocol
. I precise thatViewModel
is aClass
.However, I face this issue
I completely understand the issue but I don't know how to solve it.
Do you have any idea ?
Thanks in advance