pEpForiOSUITests/UITestData.swift.sample
author Xavier Algarra <xavier@pep-project.org>
Tue, 06 Jun 2017 07:49:23 +0200
changeset 2248 75013a586bfd
parent 1435 1f482eea873e
child 2305 d2d37db708e6
permissions -rw-r--r--
IOS-137 add multiple accounts option with the new login
     1 //
     2 //  UITestData.swift
     3 //  pEpForiOS
     4 //
     5 //  Created by Dirk Zimmermann on 20/05/16.
     6 //  Copyright © 2016 p≡p Security S.A. All rights reserved.
     7 //
     8 
     9 import Foundation
    10 
    11 struct Account {
    12     var nameOfTheUser: String
    13     var email: String
    14     var imapServerName: String
    15     var smtpServerName: String
    16     var password: String
    17     var imapPort: Int
    18     var smtpPort: Int
    19 
    20     /**
    21      This unfortunately must correspond to the localized name on screen.
    22      */
    23     var imapTransportSecurityString: String
    24 
    25     /**
    26      This unfortunately must correspond to the localized name on screen.
    27      */
    28     var smtpTransportSecurityString: String
    29 }
    30 
    31 struct UITestData {
    32     static let workingAccount1 = Account.init(
    33         nameOfTheUser: "Name",
    34         email: "email1@example.com",
    35         imapServerName: "localhost", smtpServerName: "localhost",
    36         password: "secret", imapPort: 993, smtpPort: 587,
    37         imapTransportSecurityString: "TLS", smtpTransportSecurityString: "StartTLS")
    38 
    39     static let workingAccount2 = Account.init(
    40         nameOfTheUser: "Name",
    41         email: "email2@example.com",
    42         imapServerName: "localhost", smtpServerName: "localhost",
    43         password: "secret", imapPort: 993, smtpPort: 587,
    44         imapTransportSecurityString: "TLS", smtpTransportSecurityString: "StartTLS")
    45 
    46     static let workingAccount3 = Account.init(
    47         nameOfTheUser: "Name",
    48         email: "email3@example.com",
    49         imapServerName: "localhost", smtpServerName: "localhost",
    50         password: "secret", imapPort: 993, smtpPort: 587,
    51         imapTransportSecurityString: "TLS", smtpTransportSecurityString: "StartTLS")
    52 
    53     static let workingYahooAccount = Account.init(
    54         nameOfTheUser: "WhatEverYouWant",
    55         email: "this_is_me@yahoo.com",
    56         imapServerName: "imap.mail.yahoo.com", smtpServerName: "smtp.mail.yahoo.com",
    57         password: "cannotRevealThis", imapPort: 993, smtpPort: 587,
    58         imapTransportSecurityString: "TLS", smtpTransportSecurityString: "StartTLS")
    59 }