mirror of
https://github.com/metabolist/metatext
synced 2024-12-18 12:28:35 +01:00
22 lines
624 B
Swift
22 lines
624 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import DB
|
|
import Foundation
|
|
import HTTP
|
|
import MockKeychain
|
|
import ServiceLayer
|
|
import Stubbing
|
|
|
|
public extension AppEnvironment {
|
|
static func mock(identityFixture: IdentityFixture? = nil) -> Self {
|
|
AppEnvironment(
|
|
session: Session(configuration: .stubbing),
|
|
webAuthSessionType: SuccessfulMockWebAuthSession.self,
|
|
keychain: MockKeychain.self,
|
|
userDefaults: MockUserDefaults(),
|
|
userNotificationClient: .mock,
|
|
inMemoryContent: true,
|
|
identityFixture: identityFixture)
|
|
}
|
|
}
|