IOS-1542 AccountSettings.basicConnectInfoIMAP. IOS-1542
authorDirk Zimmermann <dz@pep.security>
Mon, 15 Apr 2019 16:17:33 +0200
branchIOS-1542
changeset 82384caa515a4fc8
parent 8237 e23c7448bc16
child 8239 9e8eb6f3e246
IOS-1542 AccountSettings.basicConnectInfoIMAP.
pEpForiOSTests/TestUtils/TestDataBase.swift
     1.1 --- a/pEpForiOSTests/TestUtils/TestDataBase.swift	Mon Apr 15 16:17:33 2019 +0200
     1.2 +++ b/pEpForiOSTests/TestUtils/TestDataBase.swift	Mon Apr 15 16:17:33 2019 +0200
     1.3 @@ -11,6 +11,7 @@
     1.4  
     1.5  import MessageModel
     1.6  import PEPObjCAdapterFramework
     1.7 +import PantomimeFramework
     1.8  
     1.9  class TestDataBase {
    1.10      struct AccountSettings {
    1.11 @@ -144,6 +145,19 @@
    1.12              ident.userName = accountName
    1.13              return ident
    1.14          }
    1.15 +
    1.16 +        func basicConnectInfoIMAP() -> BasicConnectInfo {
    1.17 +            return BasicConnectInfo(
    1.18 +                accountEmailAddress: idAddress,
    1.19 +                loginName: imapLoginName ?? idAddress,
    1.20 +                loginPasswordKeyChainKey: "",
    1.21 +                loginPassword: password,
    1.22 +                networkAddress: imapServerAddress,
    1.23 +                networkPort: imapServerPort,
    1.24 +                connectionTransport: ConnectionTransport(transport: imapServerTransport),
    1.25 +                authMethod: nil,
    1.26 +                emailProtocol: .imap)
    1.27 +        }
    1.28      }
    1.29  
    1.30      private var testAccounts = [AccountSettings]()