//
//  WelcomePromptStringFactory.swift
//  Eurofurence
//
//  Created by Thomas Sherwood on 25/08/2017.
//  Copyright © 2017 Eurofurence. All rights reserved.
//

import Foundation

protocol WelcomePromptStringFactory {

    func makeString(for user: User) -> String
    func makeStringForAnonymousUser() -> String

}

struct UnlocalizedWelcomePromptStringFactory: WelcomePromptStringFactory {

    func makeString(for user: User) -> String {
        return "Welcome, \(user.username) (\(user.registrationNumber))"
    }

    func makeStringForAnonymousUser() -> String {
        return "You are currently not logged in"
    }

}

//
//  WelcomePromptStringFactory.swift
//  Eurofurence
//
//  Created by Thomas Sherwood on 25/08/2017.
//  Copyright © 2017 Eurofurence. All rights reserved.
//

import Foundation

protocol WelcomePromptStringFactory {

    func makeString(for user: User) -> String
    func makeStringForAnonymousUser() -> String

}

--- 
+++ 
@@ -14,3 +14,15 @@
     func makeStringForAnonymousUser() -> String
 
 }
+
+struct UnlocalizedWelcomePromptStringFactory: WelcomePromptStringFactory {
+
+    func makeString(for user: User) -> String {
+        return "Welcome, \(user.username) (\(user.registrationNumber))"
+    }
+
+    func makeStringForAnonymousUser() -> String {
+        return "You are currently not logged in"
+    }
+
+}
Add unlocalised adapter for welcome prompt factory
