public CrowbarViewContext SetFormsAuthPrincipal(string username, int timeout = 30) { var ticket = new FormsAuthenticationTicket(username, false, timeout); User = new GenericPrincipal(new FormsIdentity(ticket), new string[0]); return this; }