public ActionResult RegisterViaAutoRandom() { var candidateInfoGenerator = new MockContactGeneratorHelper();// MockContactGenerator(); var CandidateContactInfo = candidateInfoGenerator.GenerateContact(); try { Tracker.Current.Session.IdentifyAs(Foundation.CollectionModel.Builder.CollectionConst.XConnect.ContactIdentifiers.Sources.SitecoreCinema, CandidateContactInfo.EmailAddress); var registerInteraction = new UpdateContactInfoInteraction(CandidateContactInfo, Tracker.Current.Contact); registerInteraction.ExecuteInteraction(); } catch (System.Exception ex) { Sitecore.Diagnostics.Log.Error(ex.Message, this); } return(Redirect(Feature.SitecoreCinema.ProjectConst.Links.SitecoreCinema.SelfServiceMachine)); }
public CandidateMockContactInfo GetRandomContactInfo() { var toReturn = new MockContactGeneratorHelper().GenerateContact(); return(toReturn); }