This PR addresses issue #8 by creating a mock class for the TransactionsManagerProtocol in the CashBudTests directory. The TransactionsManagerMock class has been implemented with variables for each function in the protocol, which can be set from unit tests, and mock implementations that return the values set in the variables.
Summary of Changes
Created the CashBudTests/Mocks/Managers/TransactionsManagerMock.swift file.
Added the @testable import CashBud statement at the top of the TransactionsManagerMock file.
Defined the TransactionsManagerMock class that conforms to the TransactionsManagerProtocol.
Created optional variables for each function in the protocol.
Implemented mocks for each function that return the values set in the corresponding variables.
Fixes #8.
To checkout this PR branch, run the following command in your terminal:
Use Sweep Map to break large issues into smaller sub-issues, perfect for large tasks like "Sweep (map): migrate from React class components to function components"
Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
We released a demo of our chunker, where you can find the corresponding blog and code.
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR addresses issue #8 by creating a mock class for the
TransactionsManagerProtocol
in theCashBudTests
directory. TheTransactionsManagerMock
class has been implemented with variables for each function in the protocol, which can be set from unit tests, and mock implementations that return the values set in the variables.Summary of Changes
CashBudTests/Mocks/Managers/TransactionsManagerMock.swift
file.@testable import CashBud
statement at the top of theTransactionsManagerMock
file.TransactionsManagerMock
class that conforms to theTransactionsManagerProtocol
.Fixes #8.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: