forked from strongbox-password-safe/Strongbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SwiftDummyDatabaseModel+TestData.swift
32 lines (27 loc) · 1.32 KB
/
SwiftDummyDatabaseModel+TestData.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// SwiftDummyDatabaseModel+TestData.swift
// Strongbox
//
// Created by Strongbox on 02/08/2024.
// Copyright © 2024 Mark McGuill. All rights reserved.
//
extension SwiftDummyDatabaseModel {
static let TotpUrl = "otpauth://totp/Timely:Strongbox%20Schimke?secret=2Y&algorithm=SHA1&digits=6&period=30&issuer=Timely"
static let TestEntries = [
SwiftDummyEntryModel(title: "HSBC UK", favourite: true, tags: []),
SwiftDummyEntryModel(title: "Lloyds", tags: ["Banking", "Finance"]),
SwiftDummyEntryModel(title: "Bank of Ireland", favourite: true, tags: ["Chamonix", "Dublin", "London"]),
SwiftDummyEntryModel(title: "Microsoft", favourite: true, tags: ["Personal", "London"], totpUrl: TotpUrl),
SwiftDummyEntryModel(title: "Santander", tags: ["Cryptography"]),
SwiftDummyEntryModel(title: "Google", tags: ["Dublin", "Cryptography"]),
SwiftDummyEntryModel(title: "Starling", favourite: true, tags: ["Finance", "Dublin"]),
SwiftDummyEntryModel(title: "Wise", tags: ["Chamonix", "Science & Technology"]),
]
static var testModel: SwiftDatabaseModelInterface {
let db = SwiftDummyDatabaseModel()
db.nickName = "Mark's Database"
db.entries = TestEntries
db.auditModel = AuditViewModel(common: [TestEntries.first!])
return db
}
}