This file contains hidden or 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
enum LaunchArguments { | |
/// Reset our defaults, deletes the persistent store, and clears | |
/// keychain on launch | |
static let ResetDefaults = "ResetDefaults" | |
/// Turn off all animations | |
static let NoAnimations = "NoAnimations" | |
/// Get Care Search Result |
This file contains hidden or 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
func testAnnotationConfig() { | |
let providers = generateTestProviders() | |
let model = SearchResultsMapViewModel(searchLocation: nil, details: providers) | |
let annotation = model.getAnnotations().first as! GetCareAnnotation | |
let indexPath = NSIndexPath(forRow: 0, inSection: 0) | |
let details = SearchResultsMapViewModel.configForAnnotation(annotation) | |
XCTAssertEqual(details.title, "Bob Boberson") | |
XCTAssertEqual(details.subtitle, "Plastic Surgery") |
This file contains hidden or 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
struct SearchResultsMapViewModel { | |
init(searchLocation loc: SearchLocationDescription?, details: [GetCareProvider]) | |
func getAnnotations() -> [MKAnnotation] | |
func getProviderForAnnotation(annotation: GetCareAnnotation) -> CollectiveHealth.GetCareProvider? | |
static func configForAnnotation(annotation: GetCareAnnotation) -> CollectiveHealth.LocationDetailsTableViewModel |
NewerOlder