public void ThenTheUserShouldBeSwitchedToTheDefaultUser() { var snowUser = new SnowUser("Dominik", "Jülg", "*****@*****.**", "JOJOJO_ID"); var mirrorUser = new MirrorUser(snowUser, true, true, "annoonnnyyymmmm"); Assert.AreEqual(mirrorUser.AnnonymousId, this.mirrorStateServices.GetCurrentUser().AnnonymousId); }
MirrorUser IMirrorStateServices.LoadDefaultUser() { var snowUser = new SnowUser("Dominik", "Jülg", "*****@*****.**", "JOJOJO_ID"); var mirrorUser = new MirrorUser(snowUser, true, true, "annoonnnyyymmmm"); return(mirrorUser); }
public MirrorStateService() { var defaultSnow = new SnowUser("Default", "Default", "snowwhite@myyaps2gode", null); var defaultMirror = new MirrorUser(defaultSnow, true, false, null); this._detectionState = VoiceUseCasesState.UserDetection; this._defaultUser = defaultMirror; }
public TriggerEnrollmentFeatureSteps() { this.mockStateService = new MockStateService(); this.mockDeliveryBoundary = new MockDeliveryBoundary(); this.defaultSnowUser = new SnowUser("Default", "Default", "*****@*****.**", "SOME_ID"); this.someSnowUser = new SnowUser("Cem", "Freimoser", "*****@*****.**", "SOME_ID"); this.defaultMirrorUser = new MirrorUser(this.defaultSnowUser, true, true, null); this.someMirrorUser = new MirrorUser(this.someSnowUser, false, true, null); this.interactor = new TriggerEnrollmentInteractor(this.mockStateService, this.mockStateService, this.mockDeliveryBoundary); }
public UserEnrollmentUseCaseResponse( int remainingEnrollments, EnrollmentState previousEnrollmentState, SnowUser userToEnroll, string enrollmentPharse) { this.RemainingEnrollments = remainingEnrollments; this.PreviousEnrollmentState = previousEnrollmentState; this.UserToEnroll = userToEnroll; this.EnrollmentPharse = enrollmentPharse; }
public void SetUserForEnrollment(SnowUser user) { this.mockSnowUser = user; }
public MirrorUser LoadDefaultUser() { var snowUser = new SnowUser("Dominik", "Jülg", "*****@*****.**", "JOJOJO_ID"); return(new MirrorUser(snowUser, true, true, "annoonnnyyymmmm")); }
public TriggerEnrollmentRequest(SnowUser user) { this.SnowUser = user; }