public Result <VoidResult> Logout() { var args = new LogoutPipelineArgs(); this.pipelineService.RunPipeline(Constants.Pipelines.Logout, args); return(this.ResolveResult <VoidResult, LogoutPipelineArgs>(args)); }
public void Process_IfArgsNotNull_ShouldCallAuthenticationManagerLogout() { // arrange var loginArgs = new LogoutPipelineArgs(); // act this.logoutProcessor.Process(loginArgs); // assert this.authenticationManager.Received(1).Logout(); }
public void Process_IfArgsNotNull_ShouldCallAuthenticationServiceLogout() { // arrange var loginArgs = new LogoutPipelineArgs(); // act this.endVisitProcessor.Process(loginArgs); // assert this.trackingService.Received(1).EndVisit(true); this.sessionService.Received(1).Abandon(); }