Sitecore.Feature.Demo.Controllers.DemoController.EndVisit C# (CSharp) Method

EndVisit() public method

public EndVisit ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult EndVisit()
        {
            this.Session.Abandon();
            return new HttpStatusCodeResult(HttpStatusCode.OK);
        }
    }

Usage Example

Ejemplo n.º 1
0
 public void EndVisit_ShouldEndSession(IContactProfileProvider contact, IProfileProvider profile, [Substitute]ControllerContext ctx)
 {
   //arrange
   var controller = new DemoController(contact, profile);
   controller.ControllerContext = ctx;
   controller.EndVisit();
   ctx.HttpContext.Session.Received(1).Abandon();
 }
All Usage Examples Of Sitecore.Feature.Demo.Controllers.DemoController::EndVisit