mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-01 12:30:59 +00:00
21 lines
624 B
Swift
21 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)
|
|
}
|
|
}
|