diff --git a/solutions/csharp/secure-munchester-united/1/SecureMunchesterUnited.cs b/solutions/csharp/secure-munchester-united/1/SecureMunchesterUnited.cs new file mode 100644 index 0000000..e0c2b8b --- /dev/null +++ b/solutions/csharp/secure-munchester-united/1/SecureMunchesterUnited.cs @@ -0,0 +1,38 @@ +public class SecurityPassMaker +{ + public string GetDisplayName(TeamSupport support) + { + if(support is Staff){ + if(support.GetType() == typeof(Security)) + return support.Title + " Priority Personnel"; + else + return support.Title; + } + else + return "Too Important for a Security Pass"; + } +} + +/**** Please do not alter the code below ****/ + +public interface TeamSupport { string Title { get; } } + +public abstract class Staff : TeamSupport { public abstract string Title { get; } } + +public class Manager : TeamSupport { public string Title { get; } = "The Manager"; } + +public class Chairman : TeamSupport { public string Title { get; } = "The Chairman"; } + +public class Physio : Staff { public override string Title { get; } = "The Physio"; } + +public class OffensiveCoach : Staff { public override string Title { get; } = "Offensive Coach"; } + +public class GoalKeepingCoach : Staff { public override string Title { get; } = "Goal Keeping Coach"; } + +public class Security : Staff { public override string Title { get; } = "Security Team Member"; } + +public class SecurityJunior : Security { public override string Title { get; } = "Security Junior"; } + +public class SecurityIntern : Security { public override string Title { get; } = "Security Intern"; } + +public class PoliceLiaison : Security { public override string Title { get; } = "Police Liaison Officer"; }