//
//  AppStoreTestSupport.swift
//  suixinkanTests
//

@testable import suixinkan

extension AppSessionStore {

    /// 为需要账号作用域缓存的测试建立完整且稳定的账号上下文。
    func configureTestAccount(
        userId: String = "test-user",
        accountType: AppAccountType = .scenicUser,
        scenicId: Int? = nil
    ) {
        self.userId = userId
        self.accountType = accountType
        if let scenicId {
            currentScenicId = scenicId
        }
    }
}
