-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using access methods in transport layer
- Loading branch information
Showing
17 changed files
with
331 additions
and
310 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// AccessMethodRepositoryStub.swift | ||
// MullvadRESTTests | ||
// | ||
// Created by Mojgan on 2024-01-02. | ||
// Copyright © 2024 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import MullvadSettings | ||
|
||
typealias PersistentAccessMethod = MullvadSettings.PersistentAccessMethod | ||
class AccessMethodRepositoryStub: AccessMethodRepositoryDataSource { | ||
var accessMethods: [PersistentAccessMethod] { | ||
_accessMethods | ||
} | ||
|
||
var _accessMethods: [PersistentAccessMethod] | ||
|
||
init(accessMethods: [PersistentAccessMethod]) { | ||
_accessMethods = accessMethods | ||
} | ||
} |
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
Oops, something went wrong.