public static AbstractCredentials getVisitCredentials(MockApp theApp) { // Everything but the security phrase. AbstractCredentials result = new VistaCredentials(); result.AuthenticationSource = new DataSource(); result.AuthenticationSource.SiteId = new SiteId(theApp.User.LogonSiteId.Id, theApp.User.LogonSiteId.Name); result.LocalUid = theApp.User.Uid; result.FederatedUid = theApp.User.SSN.toString(); result.SubjectName = theApp.User.Name.getLastNameFirst(); result.SubjectPhone = theApp.User.Phone; return result; }
// Need to Spring this stuff... internal static MockApp getTheApp(string theUser, string securityPhrase) { MockApp app = new MockApp(); //app.SiteTable = new SiteTable("../../resources/xml/VhaSites.xml"); app.User = getTestUser(theUser); app.LoginSitecode = app.User.LogonSiteId.Id; app.AccessCode = app.User.UserName; app.VerifyCode = app.User.Pwd; app.Context = app.User.PermissionString; app.SecurityPhrase = securityPhrase; app.RemoteSitecodes = new List<string>(2); app.RemoteSitecodes.Add("515"); app.RemoteSitecodes.Add("553"); return app; }