This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move bittrex unit test from test bundle
- Loading branch information
1 parent
c4e3419
commit 91736e5
Showing
10 changed files
with
72 additions
and
49 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
BalanceUnitTests/Utilities/MockInstitutionRepository.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,31 @@ | ||
// | ||
// MockInstitutionRepository.swift | ||
// BalanceUnitTests | ||
// | ||
// Created by Eli Pacheco Hoyos on 1/21/18. | ||
// Copyright © 2018 Balanced Software, Inc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
@testable import BalancemacOS | ||
|
||
class MockInstitutionRepository: InstitutionRepository { | ||
|
||
@discardableResult override func institution(institutionId: Int? = nil, | ||
source: Source, | ||
sourceInstitutionId: String, | ||
name: String, | ||
nameBreak: Int? = nil, | ||
primaryColor: PXColor? = nil, | ||
secondaryColor: PXColor? = nil, | ||
logoData: Data? = nil, | ||
dateAdded: Date = Date(), | ||
accessToken: String? = nil) -> Institution? | ||
{ | ||
return Institution(institutionId: institutionId ?? -1, | ||
source: source, | ||
sourceInstitutionId: sourceInstitutionId, | ||
name: name) | ||
} | ||
|
||
} |