mirror of
https://github.com/metabolist/metatext
synced 2025-01-25 13:09:01 +01:00
20 lines
612 B
Swift
20 lines
612 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import HTTP
|
|
import ServiceLayer
|
|
import Stubbing
|
|
|
|
public extension AppEnvironment {
|
|
static func mock(identityFixture: IdentityFixture? = nil) -> Self {
|
|
AppEnvironment(
|
|
session: Session(configuration: .stubbing),
|
|
webAuthSessionType: SuccessfulMockWebAuthSession.self,
|
|
keychainServiceType: MockKeychainService.self,
|
|
userDefaults: MockUserDefaults(),
|
|
userNotificationClient: .mock,
|
|
inMemoryContent: true,
|
|
identityFixture: identityFixture)
|
|
}
|
|
}
|